forked from BoldGrid/w3-total-cache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
71 lines (63 loc) · 2.59 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
59
60
61
62
63
64
65
66
67
68
69
70
71
# Travis CI configuraion for the W3 Total Cache WordPress plugin by BoldGrid.
# @link https://make.wordpress.org/cli/handbook/misc/plugin-unit-tests/#running-tests-on-travis-ci
language: php
services:
- mysql
notifications:
slack:
secure: Me2FCeSQNVpIx7lvf5o9gTP60+WQiaxwDIeTsE9NB6+fHRDwrt5Jju1sTXbEgbB7CDQWKuAL6CouL4ZOoUUtHe00u6D0ifwDhj1M3IMeD3NjnWr2dbvZltHkMTCLbtdfD6F5VLhYWFTSNLS4EQAOuITCi1Ph4H+WcYttaw4ldbauSmPnKRvaLGh6tHG+/zLzwdhlwUVeT3hGtZdZXB2mibxtvdx+fMJIBcd0q+smI7VIMQXKNsZ/BZ8QW/qRO2neWI3CBYigeNwXuvlxYv/UBBgneBaPGYNo3DcwHARPTSwKByyLzbG+fN4ymx7iRioQ0x74Dex16u7BNhyeOdj8E3MxR3wDTlUkwXXDJI2YpBp/jmB3lPpEu+LPUxlBV5d8HuiMSf1g4vc2VBBUypWBjq2wWCyQzuRcKDwiyc60bFKtSCOHIzRwO+hDHLW7INzDedA2W0JYerLEgmlQj7yVB8Ly4dl38Gals/X4+y4gkpOSKyCsvAOePYcPFs+BIUMRVR3kueF3fu/sWGQEDJD2oTljLm45ue/x7ytyQOHVw94Ao0A0sf1G1nMwqmIFT90z137yGrlwoh8vXHeUWxFfPV6TB75+E8QLFjoo0Gs3nzfi//kd7UMlnRKkuF1+/5Hvo3VS3GTo0nO6Xo3dCHT2f4HZdR5PVZqhTGAPxdgORa8=
env.matrix: WP_VERSION=latest
matrix:
include:
-
php: 7.4
dist: focal
before_script:
- composer self-update
- COMPOSER_MIRROR_PATH_REPOS=1 composer update -o
- bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
#- yarn run php-codesniffer
-
php: 5.6
dist: xenial
before_script:
# Downgrade to composer v1 for PHP 5.6.
- composer self-update --1
# Lock file has phpunit 9. Remove it and install phpunit 5 for php 5.6.
- composer remove --no-update --dev phpunit/phpunit yoast/phpunit-polyfills
- composer require --no-update --dev phpunit/phpunit yoast/phpunit-polyfills
- composer update -o
- bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
#- yarn run php-codesniffer
-
php: 8.0
dist: focal
before_script:
- composer update -o
- bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
#- yarn run php-codesniffer
install:
- nvm install 16
- nvm use 16
- yarn install
script:
- vendor/phpunit/phpunit/phpunit --debug
#- yarn run js-lint
# Remove dev dependencies.
- COMPOSER_MIRROR_PATH_REPOS=1 composer install --no-dev -o
# PHP lint.
- find . -name composer -prune -o -name node_modules -prune -o -name '*.php' -exec php -lf {} \; > /dev/null
deploy:
- provider: script
script: chmod +x ./bin/release.sh && ./bin/release.sh
skip_cleanup: true
on:
tags: true
php: 7.4
- provider: releases
api_key: "${GITHUB_TOKEN}"
file: "w3-total-cache.zip"
skip_cleanup: true
on:
tags: true
php: 7.4