Skip to content
This repository was archived by the owner on Jan 21, 2020. It is now read-only.

Commit 7279e3f

Browse files
author
David Chung
authored
Fix broken circle build (#351)
Signed-off-by: David Chung <[email protected]>
1 parent 8a30d4a commit 7279e3f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

circle.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ machine:
99
GOVERSION: "1.7"
1010
GOPATH: "$HOME/.go_workspace"
1111
WORKDIR: "$GOPATH/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME"
12+
DOCKER_RM: "false"
1213

1314
dependencies:
1415
pre:

scripts/container-test

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@ cd "$HERE/.."
1010
TEST_DIR=$(pwd)/container-test
1111
DOCKER_IMAGE="${DOCKER_IMAGE:-infrakit/devbundle}"
1212
DOCKER_TAG="${DOCKER_TAG:-dev}"
13+
DOCKER_RM="${DOCKER_RM:-true}"
1314

1415
cleanup() {
15-
docker ps | grep devbundle | awk '{print $1}' | xargs docker stop
16-
docker ps | grep devbundle | awk '{print $1}' | xargs docker rm
16+
if [ "$DOCKER_RM" = "true" ]; then
17+
echo "cleaning up docker images"
18+
docker ps | grep devbundle | awk '{print $1}' | xargs docker stop
19+
docker ps | grep devbundle | awk '{print $1}' | xargs docker rm
20+
fi
1721
rm -rf $TEST_DIR
1822
}
1923
trap cleanup EXIT

0 commit comments

Comments
 (0)