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

Why do this twice?

This commit is contained in:
deadprogram 2016-02-03 19:52:23 -08:00
parent 1de703fe12
commit 6f11d2752b

View File

@ -2,13 +2,11 @@
PACKAGES=('gobot' 'gobot/api' 'gobot/platforms/firmata/client' 'gobot/platforms/intel-iot/edison' 'gobot/sysfs' $(ls ./platforms | sed -e 's/^/gobot\/platforms\//')) PACKAGES=('gobot' 'gobot/api' 'gobot/platforms/firmata/client' 'gobot/platforms/intel-iot/edison' 'gobot/sysfs' $(ls ./platforms | sed -e 's/^/gobot\/platforms\//'))
EXITCODE=0 EXITCODE=0
go test -cover github.com/hybridgroup/gobot
echo "mode: set" > profile.cov echo "mode: set" > profile.cov
touch tmp.cov touch tmp.cov
for package in "${PACKAGES[@]}" for package in "${PACKAGES[@]}"
do do
go test -a -covermode=count -coverprofile=tmp.cov github.com/hybridgroup/$package go test -a -coverprofile=tmp.cov github.com/hybridgroup/$package
if [ $? -ne 0 ] if [ $? -ne 0 ]
then then
EXITCODE=1 EXITCODE=1