From fa5c12c96eac90f8d2c217ac73ce0f13a1cc9339 Mon Sep 17 00:00:00 2001 From: nobonobo Date: Thu, 28 Nov 2013 21:18:59 +0900 Subject: [PATCH] make test added --- .travis.yml | 6 ++++-- Makefile | 15 ++++++++++++++- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index e48f1df..385c280 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,9 +2,11 @@ language: go go: - 1.1 + - tip install: - go get github.com/r7kamura/gospel - - make all + - make install -script: go test ./ +script: + - make test diff --git a/Makefile b/Makefile index 6812cba..81685f3 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,21 @@ # for GNU make +.PHONY: all build test clean -all: libunqlite.a +all: build + +build: libunqlite.a + go build + +install: go install +clean: + rm -f libunqlite.a + rm -rf src/* + +test: + go test ./ + src/unqlite.c: git submodule init git submodule update