semaphore.sh: add to release-3.1 branch

This commit is contained in:
Joe Betz 2017-11-01 17:01:29 -07:00 committed by Gyu-Ho Lee
parent f8aeb21c2d
commit 6ffc32cd06
2 changed files with 17 additions and 1 deletions

16
.semaphore.sh Executable file
View File

@ -0,0 +1,16 @@
#!/usr/bin/env bash
TEST_SUFFIX=$(date +%s | base64 | head -c 15)
TEST_OPTS="RELEASE_TEST=y INTEGRATION=y PASSES='build unit release integration_e2e functional'"
if [ "$TEST_ARCH" == "386" ]; then
TEST_OPTS="GOARCH=386 PASSES='build unit integration_e2e'"
fi
docker run \
--rm \
--volume=`pwd`:/go/src/github.com/coreos/etcd \
gcr.io/etcd-development/etcd-test:go1.8.5 \
/bin/bash -c "${TEST_OPTS} ./test 2>&1 | tee test-${TEST_SUFFIX}.log"
! grep FAIL -A10 -B50 test-${TEST_SUFFIX}.log

View File

@ -4,7 +4,7 @@ go_import_path: github.com/coreos/etcd
sudo: false
go:
- 1.8.3
- 1.8.5
notifications:
on_success: never