diff --git a/.travis.yml b/.travis.yml index ce54bdffc..f62b38976 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,10 +23,12 @@ env: - DEPLOY_REPO=Taskana/taskana - VERSION=v`mvn -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.6.0:exec -f ./lib` matrix: - - DB=H2 - - DB=DB2_10_5 - - DB=DB2_11_1 - - DB=POSTGRES_10_4 + - DB=H2 PROJECT=REST + - DB=H2 PROJECT=LIB + - DB=DB2_10_5 PROJECT=CORE + - DB=DB2_11_1 PROJECT=CORE + - DB=POSTGRES_10_4 PROJECT=CORE + - DB=POSTGRES_10_4 PROJECT=WILDFLY stage: Test script: @@ -35,7 +37,7 @@ script: - sleep 3 # give xvfb some time to start - nvm install $NODE_VERSION && ci/change_version.sh -m "lib/ rest/" -swarm lib/taskana-cdi/src/test/java/pro/taskana/TaskanaProducersTest.java - && ./ci/test.sh $DB + && ci/test.sh $DB $PROJECT jobs: include: diff --git a/ci/test.sh b/ci/test.sh index 3e16eadd4..253e416a7 100755 --- a/ci/test.sh +++ b/ci/test.sh @@ -15,6 +15,11 @@ set -e # fail fast #H - DB2_10_5 #H - DB2_11_1 #H - POSTGRES_10_4 +#H project: +#H - REST +#H - WILDFLY +#H - CORE +#H - LIB # Arguments: # $1: exit code function helpAndExit { @@ -26,13 +31,17 @@ function main { [[ $# -eq 0 || "$1" == '-h' || "$1" == '--help' ]] && helpAndExit 0 REL=`dirname "$0"` eval "$REL/prepare_db.sh '$1'" - if [[ "$1" == "H2" ]]; then - (cd $REL/../web && npm run test) - mvn clean verify -q -f $REL/../lib/ -B - mvn clean install -q -f $REL/../rest/ -B -P history.plugin - elif [[ "$1" == "POSTGRES_10_4" ]]; then + if [[ "$1" == "H2" && "$2" == "LIB" ]]; then + mvn clean install -q -f $REL/../lib/ -B + elif [[ "$1" == "H2" && "$2" == "REST" ]]; then + (cd $REL/../web && npm run test) + mvn clean install -q -f $REL/../rest/ -B + mvn clean verify -q -f $REL/../rest/ -B -pl taskana-rest-spring-example -P history.plugin + elif [[ "$1" == "POSTGRES_10_4" && "$2" == "CORE" ]]; then + mvn clean verify -q -f $REL/../lib/taskana-core -B + elif [[ "$1" == "POSTGRES_10_4" && "$2" == "WILDFLY" ]]; then mvn clean install -q -f $REL/../lib/ -B -DskipTests=true -Dmaven.javadoc.skip=true - mvn clean install -q -f $REL/../rest/ -B -DskipTests=true -pl !taskana-rest-spring-wildfly-example -Dmaven.javadoc.skip=true + mvn clean install -q -f $REL/../rest/ -B -DskipTests=true -pl !taskana-rest-spring-wildfly-example -Dmaven.javadoc.skip=true mvn clean install -q -f $REL/../rest/ -B -pl taskana-rest-spring-wildfly-example -Dmaven.javadoc.skip=true -P postgres else mvn clean verify -q -f $REL/../lib/taskana-core -B