Skip to content

Commit 428cafc

Browse files
committed
Make deployment conditional on whether it's a PR build.
1 parent f23831a commit 428cafc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ cache:
99
- '$HOME/.m2/repository'
1010

1111
install: /bin/true
12-
script: mvn deploy -s ./travis-settings.xml -V -Prun-its -q -B -e
12+
script:
13+
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && mvn -s ./travis-settings.xml -Prun-its -q -B -e install || mvn deploy -s ./travis-settings.xml -V -Prun-its -q -B -e'

0 commit comments

Comments
 (0)