blob: f593155205e5a94c74a5b1b90a7d3513925f34fe [file] [log] [blame]
#!/bin/bash
EXIT_STATUS=0
./gradlew --stop
if [[ $TRAVIS_TAG =~ ^v[[:digit:]] ]]; then
echo "Tagged Release Skipping Tests for Publish"
else
./gradlew compileGroovy || EXIT_STATUS=$?
./gradlew --stop
if [[ $EXIT_STATUS -eq 0 ]]; then
./gradlew compileTestGroovy|| EXIT_STATUS=$?
./gradlew --stop
fi
if [[ $EXIT_STATUS -eq 0 ]]; then
./gradlew --refresh-dependencies check || EXIT_STATUS=$?
fi
fi
if [[ $EXIT_STATUS -eq 0 && $TRAVIS_PULL_REQUEST == 'false' ]]; then
if [[ -n $TRAVIS_TAG ]] || [[ $TRAVIS_BRANCH == '6.0.x' ]]; then
./gradlew --stop
./travis-publish.sh || EXIT_STATUS=$?
fi
fi
exit $EXIT_STATUS