-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
55 lines (46 loc) · 960 Bytes
/
.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
sudo: false
language: php
notifications:
email: false
cache:
directories:
- vendor
- $HOME/.composer/cache
php:
- 7.3
- 7.2
- 7.1
- 7.0
env:
- WP_VERSION=latest
- WP_VERSION=5.0
- WP_VERSION=4.9.9
matrix:
fast_finish: true
include:
- name: Coding Standards
php: 7.2
env: WP_VERSION=latest RUN_PHPCS=1
- name: Bleeding Edge
php: nightly
env: WP_VERSION=trunk
exclude:
# WordPress < 5.0 doesn't officially support PHP 7.3
- php: 7.3
env: WP_VERSION=4.9.9
allow_failures:
- name: Bleeding Edge
php: nightly
env: WP_VERSION=trunk
install:
- composer install --prefer-dist
- bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
- sh vendor/bin/install-runkit.sh
script:
- |
if [[ ${RUN_PHPCS} ]]; then
./vendor/bin/phpcs
else
WP_MULTISITE=0 ./vendor/bin/phpunit
WP_MULTISITE=1 ./vendor/bin/phpunit
fi