-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
64 lines (52 loc) · 1.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
# This uses newer and faster docker based build system
sudo: false
language: php
notifications:
on_success: never
on_failure: change
services:
- mysql
php:
- 7.4
- 5.6
env:
# - WP_VERSION=bleeding WP_MULTISITE=0
# - WP_VERSION=bleeding-maintenance WP_MULTISITE=0
- WP_VERSION=latest WP_MULTISITE=0
- WP_VERSION=latest WP_MULTISITE=1
matrix:
allow_failures:
- php: nightly # PHP 8.x
- env: WP_VERSION=bleeding WP_MULTISITE=0
# - env: WP_VERSION=bleeding-maintenance WP_MULTISITE=0
include:
- php: nightly
env: WP_VERSION=bleeding WP_MULTISITE=0
- php: nightly
env: WP_VERSION=latest WP_MULTISITE=0
- php: 7.3
env: WP_VERSION=latest WP_MULTISITE=0
- php: 7.0
env: WP_VERSION=latest WP_MULTISITE=0
- php: 5.6
env: WP_VERSION=5.3 WP_MULTISITE=0
## Cache composer bits
cache:
apt: true
directories:
- vendor
- $HOME/.composer/cache
before_script:
- if [[ $TRAVIS_PHP_VERSION != 'hhvm' && $TRAVIS_PHP_VERSION != 'nightly' ]]; then
phpenv config-rm xdebug.ini;
fi
# Install composer packages before trying to activate themes or plugins
- if [[ $TRAVIS_PHP_VERSION != 5.2 ]]; then
composer self-update;
composer install --no-interaction --prefer-source;
fi
# - git clone https://github.com/Seravo/wordpress-test-template wp-tests
- bash bin/install-wp-tests.sh test root '' localhost $WP_VERSION
script:
- vendor/bin/phpunit
# - cd tests/spec && bundle exec rspec test.rb