Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

Commit

Permalink
ci debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
rclark committed Jul 27, 2016
1 parent bd3efe1 commit fc471b0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
5 changes: 5 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
machine:
services:
- docker
test:
pre:
- git config --global user.email "[email protected]"
- git config --global user.name "circleci"
- export TMPDIR=$(mktemp -d)
14 changes: 8 additions & 6 deletions test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,9 @@ fi
assert "equal" "${FAILURE}" "" "should not have any failures"

tag_test "build image"
assert success "$(which docker) build -t ecs-conex ./ --no-cache" "built image"
echo "docker version: $($(which docker) --version)"
echo "build command: $(which docker) build --no-cache -t ecs-conex ./"
assert success "$(which docker) build --no-cache -t ecs-conex ./" "built image"

# restore stashed AWS vars for integration test
export AWS_ACCESS_KEY_ID=${stashedAccessKey}
Expand All @@ -390,11 +392,11 @@ cwd=$(pwd) && cd ${local_repo}

# push an empty commit to a random branch
branch=$(node -e "console.log(require('crypto').randomBytes(8).toString('hex'))")
$git checkout -b ${branch} > /dev/null 2>&1
before=$($git rev-parse head)
$git commit -m "integration test" --allow-empty > /dev/null 2>&1
after=$($git rev-parse head)
$git push --set-upstream origin ${branch} > /dev/null 2>&1
$git checkout -b ${branch}
before=$($git rev-parse HEAD)
$git commit -m "integration test" --allow-empty
after=$($git rev-parse HEAD)
$git push --set-upstream origin ${branch}

# Ask ecs-conex to build the commit that was made
cd ${cwd}
Expand Down

0 comments on commit fc471b0

Please sign in to comment.