Skip to content

Commit

Permalink
Update travis build script
Browse files Browse the repository at this point in the history
Update .travis.yml
  • Loading branch information
zankich committed Dec 16, 2014
1 parent c5dfe82 commit 9fa64f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ language: go
go:
- 1.2
- 1.3
- 1.4
- release
- tip
before_install:
Expand Down
8 changes: 5 additions & 3 deletions scripts/travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9fa64f8

Please sign in to comment.