task/819 Split travis into 6 jobs with a more understandable name
This commit is contained in:
parent
8cc9abb27f
commit
9296579aff
12
.travis.yml
12
.travis.yml
|
@ -23,10 +23,12 @@ env:
|
||||||
- DEPLOY_REPO=Taskana/taskana
|
- 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`
|
- 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:
|
matrix:
|
||||||
- DB=H2
|
- DB=H2 PROJECT=REST
|
||||||
- DB=DB2_10_5
|
- DB=H2 PROJECT=LIB
|
||||||
- DB=DB2_11_1
|
- DB=DB2_10_5 PROJECT=CORE
|
||||||
- DB=POSTGRES_10_4
|
- DB=DB2_11_1 PROJECT=CORE
|
||||||
|
- DB=POSTGRES_10_4 PROJECT=CORE
|
||||||
|
- DB=POSTGRES_10_4 PROJECT=WILDFLY
|
||||||
|
|
||||||
stage: Test
|
stage: Test
|
||||||
script:
|
script:
|
||||||
|
@ -35,7 +37,7 @@ script:
|
||||||
- sleep 3 # give xvfb some time to start
|
- sleep 3 # give xvfb some time to start
|
||||||
- nvm install $NODE_VERSION
|
- nvm install $NODE_VERSION
|
||||||
&& ci/change_version.sh -m "lib/ rest/" -swarm lib/taskana-cdi/src/test/java/pro/taskana/TaskanaProducersTest.java
|
&& 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:
|
jobs:
|
||||||
include:
|
include:
|
||||||
|
|
21
ci/test.sh
21
ci/test.sh
|
@ -15,6 +15,11 @@ set -e # fail fast
|
||||||
#H - DB2_10_5
|
#H - DB2_10_5
|
||||||
#H - DB2_11_1
|
#H - DB2_11_1
|
||||||
#H - POSTGRES_10_4
|
#H - POSTGRES_10_4
|
||||||
|
#H project:
|
||||||
|
#H - REST
|
||||||
|
#H - WILDFLY
|
||||||
|
#H - CORE
|
||||||
|
#H - LIB
|
||||||
# Arguments:
|
# Arguments:
|
||||||
# $1: exit code
|
# $1: exit code
|
||||||
function helpAndExit {
|
function helpAndExit {
|
||||||
|
@ -26,13 +31,17 @@ function main {
|
||||||
[[ $# -eq 0 || "$1" == '-h' || "$1" == '--help' ]] && helpAndExit 0
|
[[ $# -eq 0 || "$1" == '-h' || "$1" == '--help' ]] && helpAndExit 0
|
||||||
REL=`dirname "$0"`
|
REL=`dirname "$0"`
|
||||||
eval "$REL/prepare_db.sh '$1'"
|
eval "$REL/prepare_db.sh '$1'"
|
||||||
if [[ "$1" == "H2" ]]; then
|
if [[ "$1" == "H2" && "$2" == "LIB" ]]; then
|
||||||
(cd $REL/../web && npm run test)
|
mvn clean install -q -f $REL/../lib/ -B
|
||||||
mvn clean verify -q -f $REL/../lib/ -B
|
elif [[ "$1" == "H2" && "$2" == "REST" ]]; then
|
||||||
mvn clean install -q -f $REL/../rest/ -B -P history.plugin
|
(cd $REL/../web && npm run test)
|
||||||
elif [[ "$1" == "POSTGRES_10_4" ]]; then
|
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/../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
|
mvn clean install -q -f $REL/../rest/ -B -pl taskana-rest-spring-wildfly-example -Dmaven.javadoc.skip=true -P postgres
|
||||||
else
|
else
|
||||||
mvn clean verify -q -f $REL/../lib/taskana-core -B
|
mvn clean verify -q -f $REL/../lib/taskana-core -B
|
||||||
|
|
Loading…
Reference in New Issue