@@ -7,11 +7,17 @@ variables:
77 # Gradle daemons may get killed, preventing proper clean-up of lock files in GRADLE_USER_HOME.
88 # Use low priority processes to avoid Gradle builds consuming all build machine resources.
99 GRADLE_OPTS : " -Dorg.gradle.daemon=false -Dorg.gradle.priority=low"
10+ # Apache Maven related side notes:
11+ # --batch-mode: recommended in CI, run in non-interactive mode (disables output color)
12+ # --show-version: strongly recommended in CI, will display the JDK and Maven versions in use.
13+ # Very useful to be quickly sure the selected versions were the ones you think.
14+ # --errors: Produce execution error messages, useful for plugin developers (like us).
15+ MVN_ARGS : " --batch-mode --show-version --errors"
1016
1117stages :
1218 - test
1319
14- build-and-test :
20+ build-gradle :
1521 stage : test
1622 tags : [ docker, x64 ]
1723 before_script :
@@ -26,18 +32,29 @@ build-and-test:
2632 reports :
2733 junit : " **/build/test-results/**/TEST-*.xml"
2834
29- run-cli-app :
35+ run-console-gradle :
3036 stage : test
3137 tags : [ docker, x64 ]
32- needs : ["build-and-test "]
38+ needs : ["build-gradle "]
3339 before_script :
3440 # "|| true" for an OK exit code if path not found
3541 - rm -r java-main/objectbox-notes-db || true
3642 - rm -r kotlin-main/objectbox-notes-db || true
3743 script :
3844 - ./gradlew java-main:run
39- # Run again with existing database.
40- - ./gradlew java-main:run
41- - ./gradlew kotlin-main:run
42- # Run again with existing database.
45+ - ./gradlew java-main:run # Run again with existing database.
4346 - ./gradlew kotlin-main:run
47+ - ./gradlew kotlin-main:run # Run again with existing database
48+ 49+ build-and-run-console-maven :
50+ stage : test
51+ tags : [ docker, x64 ]
52+ before_script :
53+ # "|| true" for an OK exit code if path not found
54+ - rm -r java-main-maven/objectbox-notes-db || true
55+ script :
56+ - cd java-main-maven
57+ - ./mvnw $MVN_ARGS compile exec:java
58+ - ./mvnw $MVN_ARGS exec:java # Run again with existing database
59+ - cd ../java-main-sync
60+ - ./mvnw $MVN_ARGS compile
0 commit comments