Skip to content

Commit f881745

Browse files
committed
HV-1550 Move common build options to a variable in the Travis build
1 parent 14ed3fa commit f881745

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.travis.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ addons:
1616
cache:
1717
directories:
1818
- $HOME/.m2
19+
before_install:
20+
- BUILD_OPTIONS='-s settings-example.xml'
1921
install:
2022
# The Maven install provided by Travis is outdated, use Maven wrapper to get the latest version
2123
- mvn -N io.takari:maven:wrapper
2224
- ./mvnw -v
2325
# first run to download all the Maven dependencies without logging
24-
- travis_wait ./mvnw -s settings-example.xml -U -B -q -DskipTests=true install
26+
- travis_wait ./mvnw $BUILD_OPTIONS -U -B -q -DskipTests=true install
2527
before_script:
2628
script:
27-
- ./mvnw -s settings-example.xml clean verify
29+
- ./mvnw $BUILD_OPTIONS clean verify

0 commit comments

Comments
 (0)