Skip to content

Commit

Permalink
clean cache hack
Browse files Browse the repository at this point in the history
  • Loading branch information
octonato committed Nov 30, 2020
1 parent fea27b6 commit e998047
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ env:
global:
- TRAVIS_JDK=11
- JABBA_HOME=$HOME/.jabba
- RUN_DROP_TRAVIS_CACHES_STAGE=true

before_install:
# See https://github.com/travis-ci/travis-ci/issues/4629#issuecomment-239493916
Expand Down Expand Up @@ -42,6 +43,17 @@ before_cache:

jobs:
include:

- stage: drop-travis-caches
# Introduced 2020-10-19 as we noticed serious problems with Travis' caching
script:
- rm -rf $HOME/.cache/coursier
- rm -rf $HOME/.ivy2/cache
- rm -rf $HOME/.jabba
- rm -rf $HOME/.sbt
- rm -rf $HOME/.m2/repository
name: "drop-travis-caches"

# Mixed Persistence Samples
- stage: test-java-11
name: "Run tests Mixed Persistence (java)"
Expand Down Expand Up @@ -141,10 +153,18 @@ jobs:
- docker-compose -f couchbase-persistence/docker/docker-compose.yml up -d couchbase
- sleep 30s
- "cd couchbase-persistence/couchbase-persistence-scala-sbt && sbt test stage"


stages:
- test-java-11
- test-java-8
- name: drop-travis-caches
# to drop caches trigger a custom build with
# env:
# global:
# - RUN_DROP_TRAVIS_CACHES_STAGE=true
if: env(RUN_DROP_TRAVIS_CACHES_STAGE) = true
- name: test-java-11
- name: test-java-8


notifications:
webhooks:
Expand Down

0 comments on commit e998047

Please sign in to comment.