istanbul-tools/.travis.yml

35 lines
813 B
YAML

language: go
go_import_path: github.com/getamis/istanbul-tools
sudo: required
os: linux
dist: trusty
go:
- 1.7.6
- 1.8.3
env:
- TEST=unit
- TEST=istanbul
- TEST=quorum
services:
- docker
install:
- go get github.com/Masterminds/glide
- go get github.com/onsi/ginkgo/ginkgo
script:
- 'if [ ${TEST} = "unit" ]; then
travis_wait 30 go test -v $(glide novendor | grep -v "\.\/tests\/\.\.\.") --timeout 30m;
elif [ ${TEST} = "istanbul" ]; then
cd ${TRAVIS_BUILD_DIR}/tests/functional && travis_wait 120 ginkgo -r --progress;
elif [ ${TEST} = "quorum" ]; then
cd ${TRAVIS_BUILD_DIR}/tests/quorum && travis_wait 120 ginkgo -r --progress;
else
echo "Invalid env"
exit 2;
fi'
notifications:
slack: maicoin:p2HicxEGvZveE900zgacSYwL