-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (48 loc) · 1.94 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
sudo: false
dist: trusty
language: php
notifications:
email:
on_success: never
on_failure: change
branches:
only:
- master
- "/^v?[0-9\\.]+$/"
cache:
directories:
- "$HOME/.composer/cache"
php:
- 5.6
- 7.0
env:
- WP_VERSION=latest WP_MULTISITE=0
- WP_VERSION=4.9 WP_MULTISITE=0
- WP_VERSION=5.0 WP_MULTISITE=0
before_script:
- composer install
- curl -s -o $HOME/.nvm/nvm.sh https://raw.githubusercontent.com/creationix/nvm/v0.31.0/nvm.sh
- source $HOME/.nvm/nvm.sh
- nvm install v10.13.0
- node --version
- npm install && npm run package
- bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
script:
- composer test
before_deploy:
- composer install --no-dev
- rm -rf .git
- "curl -L https://raw.githubusercontent.com/fumikito/wp-readme/master/wp-readme.php | php"
- rm -rf {tests,assets,bin,node_modules,.git,phpunit.xml.dist,.gitignore,.travis.yml,phpunit.xml.dist,README.md,composer.lock,package-lock.json,.phpcs.xml.dist.travis.yml}
- sed -i -e "s/nightly/${TRAVIS_TAG}/" readme.txt
- sed -i -e "s/nightly/${TRAVIS_TAG}/" $(basename $TRAVIS_REPO_SLUG).php
- zip -r hiden-$TRAVIS_TAG.zip ./
deploy:
provider: releases
api_key:
secure: hwK3iqs89CvYAxWmp88379PG53mIvG7RS3kKKBQ9LrSPqCOi5nOMk3S9HYj14dqCFpu1nbYnXC4v1AzIoNWbYKkUQuCbYgAOYsYHB5BxiDNl2u2RtQRjA6is5rSXK5U3gagT3/yFcM0+vdJuFjMwSjwPsoEEi+wcCT31SANM1HA2Ypbvp3zVP1KzootE0pKmNBmwJQFHQ1/I56ObR72M5m0VwGriUVx7/FJU7CTUh/R00AeGsWGBSlXS8srPeVpI41JS48GmNkS+fGrteOyckiho38o8EkZg8oH0D+OpHRI8QqX0Ckj3cVUj3EOED8narFyAoCKHiH/+R1Tl2EwLzM7DSCHOEuf36+bZSP4eCARmodFWeoyP5rtO3/Yox8QtOQ8PHIfoMLGcOa4pVX4jYmnRDB0xfRvgKO+WXXKpqNfxCrYT361IL4Q4uqoYBIl2MYw9atuuXZU7ssdm7adz7ewnGfB6kn+nH1k8kWuDG9FWXicZ9YAcLhnW8b9Ciuv1P0mIThCpBIJSK2k0L0yzD2XtDV0uS+mMxNhLo9sPJWhIqJ50qyCZgQmxlbED9KFSXcq1z5CBgz2qm92idBnJwTa8KsQGpPAxvrsdn1gKtDDOJXpMaveOcTBBC5fxWO2c08emOVT1sRBw2Wu9PZKGBE2JWO0UXL5EWJwJHTZg+6A=
file: hiden-$TRAVIS_TAG.zip
skip_cleanup: true
on:
repo: kuno1/hiden
tags: true