1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-05-09 19:29:27 +08:00

Update travis build script

Update .travis.yml
This commit is contained in:
Adrian Zankich 2014-12-16 15:38:28 -08:00
parent c5dfe822bf
commit 9fa64f8846
2 changed files with 6 additions and 3 deletions

View File

@ -2,6 +2,7 @@ language: go
go:
- 1.2
- 1.3
- 1.4
- release
- tip
before_install:

View File

@ -2,11 +2,13 @@
PACKAGES=('gobot' 'gobot/api' 'gobot/platforms/intel-iot/edison' 'gobot/sysfs' $(ls ./platforms | sed -e 's/^/gobot\/platforms\//'))
EXITCODE=0
if [ "$(go version | cut -d' ' -f3)" = "devel" ]
go get code.google.com/p/go.tools/cmd/cover
go test -cover github.com/hybridgroup/gobot
if [ $? -ne 0 ]
then
go get golang.org/x/tools/cmd/cover
else
go get code.google.com/p/go.tools/cmd/cover
fi
echo "mode: count" > profile.cov