mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
Enhance after_success for Travis CI
Use default bash if-then-else block with semicolon after each command and fix spelling for "incompatibility". Don't do `mvn clean` b/c we need the test results for the following tasks and don't need to rebuild everything.
This commit is contained in:
+4
-3
@@ -12,9 +12,10 @@ script: mvn test -DskipAssembly
|
|||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
# TODO delete following if statement after fix of https://github.com/cobertura/cobertura/issues/271
|
# TODO delete following if statement after fix of https://github.com/cobertura/cobertura/issues/271
|
||||||
- if [ "$TRAVIS_JDK_VERSION" == "openjdk8" ] || [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ];
|
- if [ "$TRAVIS_JDK_VERSION" == "openjdk8" ] || [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ]; then
|
||||||
then mvn clean cobertura:cobertura org.eluder.coveralls:coveralls-maven-plugin:report com.updateimpact:updateimpact-maven-plugin:submit -Ptravis-coveralls,update-impact -DskipAssembly;
|
mvn cobertura:cobertura org.eluder.coveralls:coveralls-maven-plugin:report com.updateimpact:updateimpact-maven-plugin:submit -Ptravis-coveralls,update-impact -DskipAssembly;
|
||||||
else echo "Not reporting coverage for $TRAVIS_JDK_VERSION due to incomatibility or to save performance";
|
else
|
||||||
|
echo "Not reporting coverage for $TRAVIS_JDK_VERSION due to incompatibility or to save performance";
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user