Skip to content

Commit 60d2d6a

Browse files
committed
semaphore.sh: add to release-3.1 branch
1 parent 0520cb9 commit 60d2d6a

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

.semaphore.sh

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

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go_import_path: github.com/coreos/etcd
44
sudo: false
55

66
go:
7-
- 1.8.3
7+
- 1.8.5
88

99
notifications:
1010
on_success: never

0 commit comments

Comments
 (0)