Skip to content

Commit f03420e

Browse files
committed
Publish all branches skip only pull requests
With the improved version handling in the build it is now possible to publish multiple versions in parallel. So, we can savely publish from branches.
1 parent bc4a3d3 commit f03420e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

travis/publish.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env bash
22

3-
function require_on_master {
4-
if [ ! -v TRAVIS_BRANCH -o "$TRAVIS_BRANCH" != "master" ]; then
5-
echo "Not on master branch. Will not publish."
3+
function require_no_pull_request {
4+
if [ -v TRAVIS_PULL_REQUEST -a "$TRAVIS_PULL_REQUEST" != "false" ]; then
5+
echo "Building pull request. Will not publish."
66
exit 0
77
fi
88
}
@@ -78,7 +78,7 @@ function clean_gradle_configuration {
7878
echo "OK"
7979
}
8080

81-
require_on_master
81+
require_no_pull_request
8282
require_secure_vars
8383
require_vars
8484

0 commit comments

Comments
 (0)