Skip to content

Commit 6a38b62

Browse files
ricksbrowndbmeneses
authored andcommitted
Run unit tests on community pull requests
1 parent ec4b511 commit 6a38b62

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

travis.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@ function configureTravis {
77
curl -sSL https://github.com/SonarSource/travis-utils/tarball/v57 | tar zx --strip-components 1 -C ~/.local
88
source ~/.local/bin/install
99
}
10-
configureTravis
10+
if [[ -n ${TRAVIS_SECURE_ENV_VARS+x} && ${TRAVIS_SECURE_ENV_VARS} == true ]]; then
11+
configureTravis
1112

12-
export DEPLOY_PULL_REQUEST=true
13+
export DEPLOY_PULL_REQUEST=true
1314

14-
regular_mvn_build_deploy_analyze
15+
regular_mvn_build_deploy_analyze
16+
else
17+
echo "Travis secure variables not available"
18+
mvn install
19+
fi

0 commit comments

Comments
 (0)