Another attempt at setting the cleanup var for tests.

This commit is contained in:
Jeff Geerling 2017-04-01 22:24:38 -05:00
parent 9203f8bd3c
commit 633237c0db

View File

@ -12,14 +12,13 @@ env:
script: script:
- container_id=$(date +%s) - container_id=$(date +%s)
- cleanup=false
# Download test shim. # Download test shim.
- wget -O ${PWD}/tests/test.sh https://gist.githubusercontent.com/geerlingguy/73ef1e5ee45d8694570f334be385e181/raw/ - wget -O ${PWD}/tests/test.sh https://gist.githubusercontent.com/geerlingguy/73ef1e5ee45d8694570f334be385e181/raw/
- chmod +x ${PWD}/tests/test.sh - chmod +x ${PWD}/tests/test.sh
# Run tests. # Run tests.
- ${PWD}/tests/test.sh - cleanup=false ${PWD}/tests/test.sh
# Ensure Ansible is installed (contrived... since it's already installed). # Ensure Ansible is installed (contrived... since it's already installed).
- 'docker exec --tty ${container_id} env TERM=xterm ansible --version' - 'docker exec --tty ${container_id} env TERM=xterm ansible --version'