TSK-1277: fixed travis build and artifacts to deploy

This commit is contained in:
Mustapha Zorgati 2020-10-08 16:32:18 +02:00
parent a5faab282a
commit 71c6a3f48c
3 changed files with 16 additions and 6 deletions

View File

@ -69,10 +69,10 @@ jobs:
before_cache: rm -rf "$HOME/.m2/repository/pro/taskana"
- stage: Compile
name: taskana-lib
name: taskana-common + taskana-lib
install: skip
env: MODULE=LIB
script: ci/compile.sh "$MODULE"
script: ci/compile.sh COMMON && ci/compile.sh "$MODULE"
before_cache: rm -rf "$HOME/.m2/repository/pro/taskana"
- stage: Compile
@ -83,7 +83,7 @@ jobs:
before_cache: rm -rf "$HOME/.m2/repository/pro/taskana"
- stage: Compile
name: taskana-simplehistory
name: taskana-history
install: skip
env: MODULE=HISTORY
script: ci/compile.sh "$MODULE"
@ -105,8 +105,10 @@ jobs:
before_script: ci/verify_docs_jar.sh
script: |
mvn deploy -T 4C -P `[[ "$TRAVIS_TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]] && echo "release" || echo "snapshot"` \
--settings ci/mvnsettings.xml -DskipTests -Dcheckstyle.skip -pl !:taskana-spring-example,!:taskana-cdi-example,\
!:taskana-rest-spring-example-boot,!:taskana-rest-spring-example-wildfly
--settings ci/mvnsettings.xml -DskipTests -Dcheckstyle.skip \
-pl !:taskana-common-parent,!:taskana-common,!:taskana-common-data,!:taskana-common-test,\
!:taskana-cdi-example, !:taskana-spring-example,\
!:taskana-rest-spring-example-common,!:taskana-rest-spring-example-boot,!:taskana-rest-spring-example-wildfly
before_cache: rm -rf "$HOME/.m2/repository/pro/taskana"
# travis_terminate is necessary since after_success is a job phase which can change the build result.
# it is not documented, so this is a little hack. see: https://docs.travis-ci.com/user/job-lifecycle/#breaking-the-build

View File

@ -11,8 +11,10 @@ set -e # fail fast
#H
#H module:
#H - WEB
#H - COMMON
#H - LIB
#H - REST
#H - HISTORY
# Arguments:
# $1: exit code
function helpAndExit() {
@ -30,9 +32,14 @@ function main() {
(cd $REL/../web && npm run lint)
(cd $REL/../web && npm run build)
;;
LIB)
COMMON)
set -x
mvn -q install -B -f $REL/.. -DskipTests -Dcheckstyle.skip -Dmaven.javadoc.skip -N
mvn -q test-compile -B -f $REL/../common
;;
LIB)
set -x
mvn -q install -B -f $REL/.. -pl :taskana-core -am -DskipTests -Dcheckstyle.skip -Dmaven.javadoc.skip
mvn -q test-compile -B -f $REL/../lib
;;
REST)

View File

@ -84,4 +84,5 @@ function main() {
;;
esac
}
main "$@"