-
Notifications
You must be signed in to change notification settings - Fork 33
/
.travis.yml
57 lines (47 loc) · 1.8 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
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
php:
- 7.2
services:
- mysql
branches:
only:
- /.*/
- master
- develop
env:
matrix:
- WP_VERSION=latest
script:
- echo "Jobs temporarily disabled."
before_deploy:
- 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
- php /tmp/wp-cli.phar package install [email protected]:wp-cli/dist-archive-command.git
- export RELEASE_FOLDER=reseller-store
- cp -r ${TRAVIS_BUILD_DIR} /tmp/${RELEASE_FOLDER}
- mv /tmp/${RELEASE_FOLDER} ${TRAVIS_BUILD_DIR}
- php /tmp/wp-cli.phar dist-archive ${RELEASE_FOLDER} ${TRAVIS_BUILD_DIR}/${RELEASE_FOLDER}.zip --format=zip --debug
deploy:
provider: releases
api_key:
secure: c3265EWr9S9YQY2afcAwsnSVC7jTTMV2jUk9PJtPSutfkQzapgkbclyEjQj9xdHpr+bIr5hW5HU3KhtbfEIr8GhLGw1HMlhe6I7eo1NR7SDhPnozZ0Ag5yQBMCFRykZNyBgMkmZrzNciQScldiPV75LhyH9qPTe7TejkOiVDpWn/2KTX3qUDHe0YWS8W4XDVVjIbzwpWOAjEEx1LY5pqYdyS75oGb0rrQu/5OBu9bo0a70rw0v8p7YEMdpVaVKu3NP0wPvTSyWR86AConwhuil2/8ojbkLfMxgwv6tpsThID8MipCuwqx1l6Etue2NZzbxOaprsQoDQmOLXfkixz2xdm1gUmOX/n0O/1Q3xrofL704g9Fet7nyE4vApMpMlSI23uzoTrKBSyEa90egd344u6kXX1z1KYjSQuLzmlBkezAyvJzWPEo0FbgiboveNNEUh/8Y2GIrWu11jIAbDac7a4EZoJQeH1kbkusAE7p+yov854uj5XXOQPIPpfh89xfB/4BSBp/u30JXFkUWvtNfqBZ2aZyUGxQvULn4Qxj41ugTKjoi9U1jgScj1fH+NLnGe55/A542j6OSiViwmCjQGHNICdIz13S2gHVSo55vqZst3DGlktEJ6zStN/8c4TL5yFJf/dkVZZhrKHtUNXpHYwHhOa598PRvM+gIdIUIA=
file: $RELEASE_FOLDER.zip
on:
tags: true
repo: godaddy/wp-reseller-store
php: '7.2'
condition: $WP_VERSION = latest
skip_cleanup: true
overwrite: true