forked from godaddy-wordpress/primer-child-escapade
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (48 loc) · 1.81 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
sudo: false
notifications:
email:
on_success: never
on_failure: change
cache:
directories:
- node_modules
- vendor
- $HOME/.composer/cache
- $HOME/.wp-cli/cache
- $HOME/.wp-cli/packages/cache
language:
- php
- node_js
branches:
only:
- /^v\d.*$/
- master
- develop
env:
global:
- WP_THEME=escapade
before_install:
- phpenv config-rm xdebug.ini
before_script:
- curl https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli-nightly.phar > /tmp/wp-cli.phar
- chmod +x /tmp/wp-cli.phar
script:
- echo "Deploy only"
before_deploy:
- mkdir -p /tmp/$WP_THEME
- rsync -av --exclude-from $TRAVIS_BUILD_DIR/.distignore --delete $TRAVIS_BUILD_DIR/ /tmp/$WP_THEME/
- cd /tmp
- zip -rT $TRAVIS_BUILD_DIR/$WP_THEME.zip $WP_THEME/
- sha256sum -b $TRAVIS_BUILD_DIR/$WP_THEME.zip | awk '{print $1}' | tee $TRAVIS_BUILD_DIR/$WP_THEME.zip.sha256
deploy:
provider: releases
api_key:
secure: q/kxMd3EOFXOwHyEp/UpSKtZxd3fYTpcxEcfyvYkgtRf+uRTX+en3vyfmGkVNTKON2aPbEmnaf/Af81RMCj8JUb+W8trEsFyIyYkXDqrQIxVf9f1tRUNWYuYq0az0KDfU9g6cgmNA3HrEdpL8IzBpfrnCkwqEpFXoYo/xmpkuw+w3Nt/g9BN/A+eN4tVSr7npoaraDg+euVn9cjE8WzYCc+60VKHvQIwjJN3KnFCvqTSqKOrzMXNKxK5yPmwLp/M8zFdr1TbkdfMdPbFfFYJBQSK+xX6FpC407m2lyWN41Uy3uZvq2HqwXhpjQlF3GKcxMZCGe+1spIaBVbkNE2V6ICP0iM6+k/41YQNebF1aBaIJ0UEA4eiTkYhSZNQxqkPoN7gZQpWlmCXAMJ97cp9o5m1F0J99REyYx5AKD0txHkowuECVmNiME78zKUjWAnR8kCUWww+dLNwOKI1JKAG9tOBEwd64fsXek0Uf4ROxevOLKOBImRIPg9d1MiBfR1M3NgldXlp4NpdtSouUXiGrkZ9ppExUk3RkM8w9YN0yXhBOt6iWuCBRhEuGzAAgUAARU80HOowhWDzi1ehu9TqYItCut/zz3pGJH9saj1/C5Yt3aGc+JZTKSOe6uwr1hgV9gGgYETszugTNPMZUCGSKj/pMIRYe63ogWqDe3OsrCI=
file:
- "$TRAVIS_BUILD_DIR/$WP_THEME.zip"
- "$TRAVIS_BUILD_DIR/$WP_THEME.zip.sha256"
skip_cleanup: true
overwrite: true
on:
tags: true
repo: godaddy/wp-escapade-theme