Commit 50ce465a authored by Alan Braz's avatar Alan Braz
Browse files

conditional install core, custom mvn test cmd, generic test files path

parent ad9c61a1
Pipeline #7262 passed with stage
in 6 seconds
......@@ -96,17 +96,17 @@ ibm-test:
- .maven
- .ibm_variables
script:
- $MAVEN install -f ${IBM_INT_TEST_SUBDIR/ibm/core}/pom.xml -DskipTests
- $MAVEN clean test -q -f $IBM_INT_TEST_SUBDIR/pom.xml > test-results.log
- cat $IBM_INT_TEST_SUBDIR/target/surefire-reports/*.txt
- if [[ $IBM_INT_TEST_SUBDIR == *"ibm"* ]]; then $MAVEN install -f ${IBM_INT_TEST_SUBDIR/ibm/core}/pom.xml -DskipTests=true; fi
- export TEST_CMD=${IBM_TEST_CMD:-test}
- $MAVEN $TEST_CMD -q -f $IBM_INT_TEST_SUBDIR/pom.xml > test-results.log
artifacts:
when: always
paths:
- test-results.log
- $IBM_INT_TEST_SUBDIR/target/surefire-reports/TEST-*.xml
- $IBM_INT_TEST_SUBDIR/target/*/TEST-*.xml
reports:
junit:
- $IBM_INT_TEST_SUBDIR/target/surefire-reports/TEST-*.xml
- $IBM_INT_TEST_SUBDIR/target/*/TEST-*.xml
only:
variables:
- $IBM_INT_TEST_SUBDIR && $IBM == 'true'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment