Created
December 17, 2018 12:51
-
-
Save sergeykuzmich/3763eb6231c69ea66882b16f05ef9f97 to your computer and use it in GitHub Desktop.
Complete TravisCI config for WordPress Plugin & Theme deployment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: php | |
php: | |
- 7.0 | |
script: | |
# Override default Travis script action [phpunit] | |
- php -l *.php | |
branches: | |
only: | |
# Enable Travis hook on tags (there is regular expression for semver tag)* | |
- "/\\d\\.\\d\\.\\d/" | |
# Enable Travis deployment | |
deploy: | |
# Use script as a deployment tool | |
provider: script | |
script: deploy/deploy.sh | |
# Restrict deployment only for tags | |
on: | |
tags: true | |
# Deployment script requires few enviromnet variables | |
env: | |
global: | |
- SVN_REPOSITORY={PLUGIN SVN REPOSITORY URL} | |
- secure: {ENCRYPTED SVN ACCOUNT USERNAME} | |
- secure: {ENCRYPTED SVN ACCOUNT PASSWORD} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment