We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82dcefd commit 2800504Copy full SHA for 2800504
.travis.yml
@@ -61,8 +61,7 @@ script:
61
phpunit
62
WP_MULTISITE=1 phpunit
63
fi
64
- - |
65
- if [ "$TRAVIS_BRANCH" = "master" ] || [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
66
- ./bin/push_to_wordpress_org.sh
67
- fi
68
+deploy:
+ provider: script
+ script: ./bin/push_to_wordpress_org.sh
bin/install-wp-tests.sh
100644
100755
bin/push_to_wordpress_org.sh
@@ -2,6 +2,11 @@
2
set -euo pipefail
3
IFS=$'\n\t'
4
5
+# Only deploy under the right conditions.
6
+if [ "$TRAVIS_BRANCH" != "master" ] || [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
7
+ echo "Not deploying..."
8
+fi
9
+
10
PLUGIN_VERSION="$(head -n1 VERSION)"
11
GIT_HASH="$(git rev-parse --short HEAD)"
12
0 commit comments