Skip to content

Commit 2800504

Browse files
committed
Fixes duplicate deploys caused by matrix.
1 parent 82dcefd commit 2800504

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.travis.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ script:
6161
phpunit
6262
WP_MULTISITE=1 phpunit
6363
fi
64-
- |
65-
if [ "$TRAVIS_BRANCH" = "master" ] || [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
66-
./bin/push_to_wordpress_org.sh
67-
fi
6864
65+
deploy:
66+
provider: script
67+
script: ./bin/push_to_wordpress_org.sh

bin/install-wp-tests.sh

100644100755
File mode changed.

bin/push_to_wordpress_org.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
set -euo pipefail
33
IFS=$'\n\t'
44

5+
# Only deploy under the right conditions.
6+
if [ "$TRAVIS_BRANCH" != "master" ] || [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
7+
echo "Not deploying..."
8+
fi
9+
510
PLUGIN_VERSION="$(head -n1 VERSION)"
611
GIT_HASH="$(git rev-parse --short HEAD)"
712

0 commit comments

Comments
 (0)