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:
parent
c5dfe822bf
commit
9fa64f8846
@ -2,6 +2,7 @@ language: go
|
||||
go:
|
||||
- 1.2
|
||||
- 1.3
|
||||
- 1.4
|
||||
- release
|
||||
- tip
|
||||
before_install:
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user