Skip to content

Commit

Permalink
Add maven option in build specs (aws#3591)
Browse files Browse the repository at this point in the history
  • Loading branch information
joviegas authored Dec 7, 2022
1 parent 4496c13 commit df4fa6d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion buildspecs/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ phases:

build:
commands:
- mvn clean install -T1C
- mvn clean install -T1C $MAVEN_OPTIONS
- JAVA_VERSION=$(java -version 2>&1 | grep -i version | cut -d'"' -f2 | cut -d'.' -f1-1)
- echo $JAVA_VERSION
- echo $MAVEN_OPTIONS
- |
if [ "$JAVA_VERSION" -ge "9" ]; then
cd test/module-path-tests
Expand Down
3 changes: 2 additions & 1 deletion buildspecs/integ-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ phases:
AWS_SESSION_TOKEN=`echo $ASSUME_ROLE_OUTPUT | awk '{ print $3 }'`
echo "Using role $INTEGRATION_TEST_ROLE_ARN with access key $AWS_ACCESS_KEY_ID."
fi
- mvn clean install -Dskip.unit.tests -P integration-tests -Dfindbugs.skip -Dcheckstyle.skip -T1C
- mvn clean install -Dskip.unit.tests -P integration-tests -Dfindbugs.skip -Dcheckstyle.skip -T1C $MAVEN_OPTIONS
- JAVA_VERSION=$(java -version 2>&1 | grep -i version | cut -d'"' -f2 | cut -d'.' -f1-1)
- echo $JAVA_VERSION
- echo $MAVEN_OPTIONS
- |
if [ "$JAVA_VERSION" -ge "9" ]; then
cd test/module-path-tests
Expand Down
3 changes: 2 additions & 1 deletion buildspecs/stability-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ phases:

build:
commands:
- mvn clean install -P stability-tests -pl :stability-tests --am
- mvn clean install -P stability-tests -pl :stability-tests --am $MAVEN_OPTIONS
- echo $MAVEN_OPTIONS
finally:
- mkdir -p codebuild-test-reports
- find ./ -name 'TEST-*.xml' -type f -exec cp {} codebuild-test-reports/ \;
Expand Down

0 comments on commit df4fa6d

Please sign in to comment.