istanbul-tools/.travis.yml

47 lines
902 B
YAML
Raw Normal View History

2017-08-11 01:55:13 -07:00
language: go
sudo: required
2017-09-06 23:32:33 -07:00
go:
2019-05-06 08:23:36 -07:00
- 1.11.5
- 1.12.4
2017-09-06 23:32:33 -07:00
env:
2017-09-07 01:32:53 -07:00
- TEST=unit
- TEST=istanbul
- TEST=quorum
2017-08-11 01:55:13 -07:00
services:
- docker
install:
2017-08-22 23:22:22 -07:00
- go get github.com/onsi/ginkgo/ginkgo
2019-05-06 08:23:36 -07:00
- unset GOPATH
2017-08-11 01:55:13 -07:00
script:
2017-09-07 01:32:53 -07:00
- 'if [ ${TEST} = "unit" ]; then
2019-05-06 08:23:36 -07:00
travis_wait 30 go test -v ./... --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'
branches:
only:
2018-12-03 14:35:13 -08:00
- master
jobs:
include:
- stage: release
2019-05-06 08:23:36 -07:00
go: 1.11
if: tag =~ ^v
env:
- TEST=none
- REV="$TRAVIS_TAG"
deploy:
provider: releases
api_key: "$GITHUB_OAUTH_TOKEN"
skip_cleanup: true
on:
tags: true