-
Notifications
You must be signed in to change notification settings - Fork 76
/
.travis.yml
102 lines (91 loc) · 2.23 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
language: php
dist: trusty
php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
branches:
only:
- develop
- /^(?i:release)\/.*$/
env:
- WP_VERSION=nightly
- WP_VERSION=latest
- WP_VERSION=5.3.3
- WP_VERSION=5.2.6
- WP_VERSION=5.1.5
- WP_VERSION=5.0.9
- WP_VERSION=4.9.8
- WP_VERSION=4.8.2
- WP_VERSION=4.7.5
matrix:
exclude:
# phpunit on php 5.4 & 5. must be <= 4.8, but WP requires phpunit 5.7 for 5.2.6+
- php: 5.4
env: WP_VERSION=5.2.6
- php: 5.5
env: WP_VERSION=5.2.6
- php: 5.4
env: WP_VERSION=5.3.3
- php: 5.5
env: WP_VERSION=5.3.3
- php: 5.4
env: WP_VERSION=latest
- php: 5.5
env: WP_VERSION=latest
- php: 5.4
env: WP_VERSION=nightly
- php: 5.5
env: WP_VERSION=nightly
# Older versions of WP are incompatible with PHP 7.2/7.3
- php: 7.2
env: WP_VERSION=4.7.5
- php: 7.2
env: WP_VERSION=4.8.2
- php: 7.3
env: WP_VERSION=4.7.5
- php: 7.3
env: WP_VERSION=4.8.2
- php: 7.3
env: WP_VERSION=4.9.8
# wp test lib < 5.1 & phpunit 7 incompatability
- php: 7.3
env: WP_VERSION=nightly
- php: 7.2
env: WP_VERSION=4.9.8
- php: 7.2
env: WP_VERSION=5.0.9
- php: 7.3
env: WP_VERSION=5.0.9
allow_failures:
- env: WP_VERSION=nightly
before_install:
- nvm install 10
- pecl install timezonedb
install:
- npm install grunt-cli
- npm install
- composer self-update
before_script:
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- |
if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.4" ]] || [[ ${TRAVIS_PHP_VERSION:0:3} == "5.5" ]]; then
composer global require "phpunit/phpunit=4.8.*"
elif [[ ${TRAVIS_PHP_VERSION:0:3} == "5.6" ]] || [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" ]] || [[ ${TRAVIS_PHP_VERSION:0:3} == "7.1" ]]; then
composer global require "phpunit/phpunit=5.7.*"
else
composer global require "phpunit/phpunit=7.5.*"
fi
- mysql --version
- php --version
- npm --version
- node --version
- /home/travis/.config/composer/vendor/bin/phpunit --version
- node_modules/grunt-cli/bin/grunt test_build
- bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
script:
- /home/travis/.config/composer/vendor/bin/phpunit --exclude-group timezone-flakey