1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-04-29 13:49:14 +08:00
Adrian Zankich 02a62d043a Refactor firmata client library into seperate package
Green tests

Refactor tests to table driven

Refactor analog, digital and i2c

Fix tests

golint client package

Fix tests

Add ServoConfig

Rename query and i2c functions

Fix tests

Fix typo
2015-06-30 14:11:22 -07:00

33 lines
777 B
Bash
Executable File

#!/bin/bash
PACKAGES=('gobot' 'gobot/api' 'gobot/platforms/firmata/client' 'gobot/platforms/intel-iot/edison' 'gobot/sysfs' $(ls ./platforms | sed -e 's/^/gobot\/platforms\//'))
EXITCODE=0
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
fi
echo "mode: set" > profile.cov
touch tmp.cov
for package in "${PACKAGES[@]}"
do
go test -a -coverprofile=tmp.cov github.com/hybridgroup/$package
if [ $? -ne 0 ]
then
EXITCODE=1
fi
cat tmp.cov | grep -v "mode: set" >> profile.cov
done
if [ $EXITCODE -ne 0 ]
then
exit $EXITCODE
fi
export PATH=$PATH:$HOME/gopath/bin/
goveralls -coverprofile=profile.cov -service=travis-ci -repotoken=sFrR9ZmLP5FLc34lOaqir67RPzYOvFPUB