Skip to content

Commit

Permalink
semaphore.sh: add to release-3.1 branch
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbetz authored and gyuho committed Nov 2, 2017
1 parent f8aeb21 commit 6ffc32c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .semaphore.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go_import_path: github.com/coreos/etcd
sudo: false

go:
- 1.8.3
- 1.8.5

notifications:
on_success: never
Expand Down

0 comments on commit 6ffc32c

Please sign in to comment.