47 lines
902 B
YAML
47 lines
902 B
YAML
language: go
|
|
sudo: required
|
|
go:
|
|
- 1.11.5
|
|
- 1.12.4
|
|
env:
|
|
- TEST=unit
|
|
- TEST=istanbul
|
|
- TEST=quorum
|
|
|
|
services:
|
|
- docker
|
|
|
|
install:
|
|
- go get github.com/onsi/ginkgo/ginkgo
|
|
- unset GOPATH
|
|
|
|
script:
|
|
- 'if [ ${TEST} = "unit" ]; then
|
|
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:
|
|
- master
|
|
|
|
jobs:
|
|
include:
|
|
- stage: release
|
|
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
|