NO-JIRA: fix profiles for run of examples module on JDK11+ on Travis, fix unintended build output caching, and cleanup existing cache

This commit is contained in:
Robbie Gemmell 2021-08-24 12:49:50 +01:00
parent d15680d8d9
commit e2c1efb13a
1 changed files with 5 additions and 3 deletions

View File

@ -9,11 +9,11 @@ matrix:
- os: linux
jdk: openjdk11
env:
- EXAMPLES_PROFILE="noRun"
- EXAMPLES_PROFILE="examples,noRun"
- os: linux
jdk: openjdk16
env:
- EXAMPLES_PROFILE="noRun"
- EXAMPLES_PROFILE="examples,noRun"
# clean out Artemis artifacts from the cache
before_install:
@ -26,10 +26,12 @@ script:
- set -e
- mvn -s .github/maven-settings.xml -ntp -Dorg.apache.activemq.artemis.core.io.aio.AIOSequentialFileFactory.DISABLED=AnythingNotNull -Dmaven.test.redirectTestOutputToFile=true -Derrorprone -Pfast-tests -Pextra-tests -Ptests-CI -Pjmh -B install
- cd examples
- mvn -s ../.github/maven-settings.xml install -P${EXAMPLES_PROFILE} -B -q
- mvn -s ../.github/maven-settings.xml verify -P${EXAMPLES_PROFILE} -B -q
cache:
directories:
- $HOME/.m2
before_cache:
- rm -rf $HOME/.m2/repository/org/apache/activemq/artemis-*
- rm -rf $HOME/.m2/repository/org/apache/activemq/*-artemis
- rm -rf $HOME/.m2/repository/org/apache/activemq/examples