-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
108 lines (99 loc) · 2.48 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
sudo: false
language: php
cache:
directories:
- vendor
- $HOME/.composer/cache
notifications:
email:
on_success: never
on_failure: change
before_install:
# Speed up build time by disabling Xdebug.
- phpenv config-rm xdebug.ini || echo 'No xdebug config.'
before_script:
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- |
if [[ ! -z "$WP_VERSION" ]] ; then
bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
composer global require "phpunit/phpunit=5.7.*"
fi
script:
- |
if [[ ! -z "$WP_VERSION" ]] ; then
phpunit
WP_MULTISITE=1 phpunit
fi
stages:
- verify
- test
jobs:
allow_failures:
- env: WP_VERSION=nightly
fast_finish: true
include:
- stage: verify
php: 7.2
before_install: phpenv config-rm xdebug.ini || echo 'No xdebug config.'
install:
- composer global require dealerdirect/phpcodesniffer-composer-installer wp-coding-standards/wpcs --update-no-dev
script:
- phpcs -i
- phpcs
- stage: test
php: 7.3
env: WP_VERSION=latest
- stage: test
php: 7.3
env: WP_VERSION=nightly
- stage: test
php: 7.2
env: WP_VERSION=latest
- stage: test
php: 7.2
env: WP_VERSION=nightly
- stage: test
php: 7.1
env: WP_VERSION=latest
- stage: test
php: 7.0
env: WP_VERSION=latest
- stage: test
php: 5.6
env: WP_VERSION=latest
- stage: test
php: 7.2
env: WP_VERSION=5.1
- stage: test
php: 7.2
env: WP_VERSION=5.0
- stage: test
php: 7.2
env: WP_VERSION=4.9
- stage: test
php: 7.2
env: WP_VERSION=4.8
- stage: test
php: 7.2
env: WP_VERSION=4.7
- stage: test
php: 5.6
env: WP_VERSION=4.6
- stage: test
php: 5.6
env: WP_VERSION=4.5
- stage: test
php: 5.6
env: WP_VERSION=4.4
- stage: test
php: 5.6
env: WP_VERSION=4.3
- stage: test
php: 5.6
env: WP_VERSION=4.2
- stage: test
php: 5.6
env: WP_VERSION=4.1
- stage: test
php: 5.6
env: WP_VERSION=4.0