fix ci scripts

This commit is contained in:
Jeromy 2016-10-04 16:56:56 -07:00
parent e29f2b150e
commit fb7326f3f7
3 changed files with 35 additions and 4 deletions

View File

@ -1,8 +1,24 @@
os:
- linux
- osx
language: go
go:
- tip
- 1.7
- 1.7
install: true
before_install:
- make deps
script:
- go test -race -cpu=5 -v ./...
- go vet
- $GOPATH/bin/goveralls -service="travis-ci"
cache:
directories:
- $GOPATH/src/gx
notifications:
email: false

15
Makefile Normal file
View File

@ -0,0 +1,15 @@
gx:
go get github.com/whyrusleeping/gx
go get github.com/whyrusleeping/gx-go
covertools:
go get github.com/mattn/goveralls
go get golang.org/x/tools/cmd/cover
deps: gx covertools
gx --verbose install --global
gx-go rewrite
publish:
gx-go rewrite --undo

View File

@ -17,7 +17,7 @@
"language": "go",
"license": "MIT",
"name": "go-multiaddr",
"releaseCmd": "git commit -a -m "gx publish $VERSION"",
"releaseCmd": "git commit -a -m \"gx publish $VERSION\"",
"version": "1.1.2"
}