KCR29: travis-ci: detect Travis-CI

This commit is contained in:
Paul Campbell 2017-05-29 12:04:43 +01:00
parent dd17826a60
commit 7229c11b30

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash
echo "TRAVIS: $TRAVIS"
set
if [ "$TRAVIS" = "true" ];then
## Only send coveralls reports from Travis-CI. Some CIs, like Shippable, lie by setting TRAVIS=true.
## Currently, Shippable, does not set TRAVIS_LANGUAGE, but Travis-CI does.
if [ "$TRAVIS_LANGUAGE" = "java" ];then
./mvnw --projects builder,plugin test jacoco:report coveralls:report
fi