Skip to content

Commit

Permalink
semaphore.sh: add to release-3.2 branch
Browse files Browse the repository at this point in the history
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
  • Loading branch information
gyuho committed Oct 26, 2017
1 parent fc87ae4 commit 2f74456
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 120 deletions.
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
120 changes: 0 additions & 120 deletions Makefile

This file was deleted.

0 comments on commit 2f74456

Please sign in to comment.