Skip to content

Commit 751cc0c

Browse files
committed
Update .travis.yml
Made it so pull requests don't deploy (they just verify). Only changes accepted onto the master branch will be built and deployed.
1 parent 9b6d27d commit 751cc0c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.travis.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@ node:
77
script:
88
#This is testing (I am not sure if travis encrypted vars are available in pull requests)
99
- sh -c "if $TRAVIS_SECURE_ENV_VARS; then echo TRAVIS SECURE AVAILABLE; else echo TRAVIS SECURE NOT AVAIALABLE; fi"
10-
- mvn deploy -Pall,juno --quiet --settings settings.xml
11-
- mvn deploy -Pall,kepler --quiet --settings settings.xml
12-
- mvn deploy -Pall,luna --quiet --settings settings.xml
10+
#- mvn deploy -Pall,juno --quiet --settings settings.xml
11+
- sh -c "if $TRAVIS_SECURE_ENV_VARS; then mvn deploy -Pall,juno --quiet --settings settings.xml; else mvn verify -Pall,juno --quiet --settings settings.xml; fi"
12+
#- mvn deploy -Pall,kepler --quiet --settings settings.xml
13+
- sh -c "if $TRAVIS_SECURE_ENV_VARS; then mvn deploy -Pall,kepler --quiet --settings settings.xml; else mvn verify -Pall,kepler --quiet --settings settings.xml; fi"
14+
#- mvn deploy -Pall,luna --quiet --settings settings.xml
15+
- sh -c "if $TRAVIS_SECURE_ENV_VARS; then mvn deploy -Pall,luna --quiet --settings settings.xml; else mvn verify -Pall,luna --quiet --settings settings.xml; fi"
1316

1417

1518
#Several usernames and passwords/tokens are required for deployment.

0 commit comments

Comments
 (0)