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
|
||||
- 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:
|
||||
|
|
17
ci/test.sh
17
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,11 +31,15 @@ function main {
|
|||
[[ $# -eq 0 || "$1" == '-h' || "$1" == '--help' ]] && helpAndExit 0
|
||||
REL=`dirname "$0"`
|
||||
eval "$REL/prepare_db.sh '$1'"
|
||||
if [[ "$1" == "H2" ]]; 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 verify -q -f $REL/../lib/ -B
|
||||
mvn clean install -q -f $REL/../rest/ -B -P history.plugin
|
||||
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/../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
|
||||
|
|
Loading…
Reference in New Issue