1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-05-02 22:17:12 +08:00

24 lines
627 B
Bash
Raw Normal View History

2014-07-22 09:16:54 -07:00
#!/bin/bash
PACKAGES=('gobot' 'gobot/api' 'gobot/platforms/firmata/client' 'gobot/platforms/intel-iot/edison' 'gobot/sysfs' $(ls ./platforms | sed -e 's/^/gobot\/platforms\//'))
2014-07-22 09:16:54 -07:00
EXITCODE=0
2014-12-19 11:26:44 -08:00
echo "mode: set" > profile.cov
2014-07-22 09:16:54 -07:00
touch tmp.cov
for package in "${PACKAGES[@]}"
do
2016-02-03 19:52:23 -08:00
go test -a -coverprofile=tmp.cov github.com/hybridgroup/$package
2014-07-22 09:16:54 -07:00
if [ $? -ne 0 ]
then
EXITCODE=1
fi
2014-12-19 11:26:44 -08:00
cat tmp.cov | grep -v "mode: set" >> profile.cov
2014-07-22 09:16:54 -07:00
done
if [ $EXITCODE -ne 0 ]
then
exit $EXITCODE
fi
export PATH=$PATH:$HOME/gopath/bin/
goveralls -v -coverprofile=profile.cov -service=travis-ci -repotoken=sFrR9ZmLP5FLc34lOaqir67RPzYOvFPUB