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

Digital write works Add PWMWrite Add AnalogRead Refactor edison adaptor Enable more digital pins Enable all digital pins Add i2c support Properly close i2c device Restore proper examples Add test stub Add Edison README
24 lines
595 B
Bash
Executable File
24 lines
595 B
Bash
Executable File
#!/bin/bash
|
|
PACKAGES=('gobot' 'gobot/api' 'gobot/platforms/intel-iot/edison' $(ls ./platforms | sed -e 's/^/gobot\/platforms\//'))
|
|
EXITCODE=0
|
|
|
|
echo "mode: count" > profile.cov
|
|
touch tmp.cov
|
|
for package in "${PACKAGES[@]}"
|
|
do
|
|
go test -covermode=count -coverprofile=tmp.cov github.com/hybridgroup/$package
|
|
if [ $? -ne 0 ]
|
|
then
|
|
EXITCODE=1
|
|
fi
|
|
cat tmp.cov | grep -v "mode: count" >> 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
|