1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-04-27 13:48:56 +08:00
deadprogram c40c44b2a9 Revert "Trying to remove coveralls based code coverage"
This reverts commit 5d0c684b5d12f6ee4af09d251f9bd703cf61afda.
2016-02-17 12:25:14 -08:00

24 lines
627 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
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 -v -coverprofile=profile.cov -service=travis-ci -repotoken=sFrR9ZmLP5FLc34lOaqir67RPzYOvFPUB