diff --git a/.travis.yml b/.travis.yml index d877ffbd64..b8edcd5d1a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -36,7 +36,14 @@ matrix: env: - JDK="JDK8" script: - - if [ ! -z "$TRAVIS_TAG" ]; then travis_wait 60 mvn -s settings.xml install site site:stage -DreleaseTesting -Danalyzer.node.package.enabled=false -Danalyzer.node.audit.enabled=false; else travis_wait 60 mvn -s settings.xml install -DreleaseTesting -Danalyzer.node.package.enabled=false -Danalyzer.node.audit.enabled=false; fi + - if [ ! -z "$TRAVIS_TAG" ]; then + travis_wait 60 mvn -s settings.xml install site site:stage -DreleaseTesting -Danalyzer.node.package.enabled=false -Danalyzer.node.audit.enabled=false; + else + rm -rf core/target/data; + rm -rf maven/target/local-repo/org/owasp/dependency-check-data + rm -rf $HOME/.m2/repository/org/owasp/dependency-check-data + travis_wait 60 mvn -s settings.xml install -DreleaseTesting -Danalyzer.node.package.enabled=false -Danalyzer.node.audit.enabled=false; + fi after_success: - if [ "$JDK" == "JDK8" ]; then