Always clean Travis CI cache if build fails
This commit is contained in:
parent
093a58558c
commit
23c01b40c5
2 changed files with 5 additions and 1 deletions
|
@ -13,6 +13,10 @@ before_script:
|
|||
- sudo service mysql stop
|
||||
- sudo service postgresql stop
|
||||
|
||||
# Clean the cache if any step fails.
|
||||
after_failure:
|
||||
- scripts/ci clean
|
||||
|
||||
cache:
|
||||
timeout: 1000
|
||||
directories:
|
||||
|
|
|
@ -45,7 +45,7 @@ clean_cache() {
|
|||
|
||||
|
||||
quay_run() {
|
||||
docker run --net=host --entrypoint "/bin/bash" -e TEST_DATABASE_URI -ti "${IMAGE}:${IMAGE_TAG}" -c "$*"
|
||||
docker run --net=host -e TEST_DATABASE_URI -ti "${IMAGE}:${IMAGE_TAG}" "$@"
|
||||
}
|
||||
|
||||
|
||||
|
|
Reference in a new issue