task/819 Split travis into 6 jobs with a more understandable name

This commit is contained in:
Martin Rojas Miguel Angel 2019-02-18 13:27:15 +01:00 committed by Mustapha Zorgati
parent 8cc9abb27f
commit 9296579aff
2 changed files with 22 additions and 11 deletions

View File

@ -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:

View File

@ -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