Add Makefile and travis

This commit is contained in:
Jakub Sztandera 2016-06-30 20:06:17 +02:00
parent 5c9e1a5ccc
commit d7b2c72754
2 changed files with 19 additions and 20 deletions

View File

@ -1,27 +1,12 @@
os:
- linux
- osx
language: go
sudo: false
go:
- 1.5.3
before_install:
- go get github.com/mattn/goveralls
- go get golang.org/x/tools/cmd/cover
- go get github.com/whyrusleeping/gx
- go get github.com/whyrusleeping/gx-go
install:
- gx --verbose install --global
- gx-go rewrite
- 1.6.2
- release
- tip
script:
- $HOME/gopath/bin/goveralls -service="travis-ci"
- make test
cache:
directories:
- $GOPATH/src/gx
env: TEST_NO_FUSE=1 TEST_VERBOSE=1

14
Makefile Normal file
View File

@ -0,0 +1,14 @@
test: deps
go test -race -v ./...
export IPFS_API ?= v04x.ipfs.io
gx:
go get -u github.com/whyrusleeping/gx
go get -u github.com/whyrusleeping/gx-go
deps: gx
gx --verbose install --global
gx-go rewrite
go get -t ./...