-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (52 loc) · 1.81 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
# Travis CI configuration file.
language: php
# Run against all versions of PHP supported by WordPress.
php:
- 7.2
- 7.1
- 7.0
- 5.6
- 5.5
- 5.4
# Run against last few versions of WordPress.
env:
- WP_VERSION=4.8
- WP_VERSION=4.7
- WP_VERSION=4.6
# Use the faster container-based builds.
sudo: false
matrix:
# Run against HHVM and PHP nightly only with the latest version of WordPress.
include:
- php: 5.2
env: WP_VERSION=4.8
dist: precise
- php: 5.3
env: WP_VERSION=4.8
dist: precise
- php: hhvm
env: WP_VERSION=4.8
- php: nightly
env: WP_VERSION=4.8
# These are experimental, so allow for failures without failing the whole build.
allow_failures:
- php: hhvm
- php: nightly
# Let us know as soon as something has exploded.
fast_finish: true
before_script:
# Set up the WordPress directory.
- export WP_TESTS_DIR=/tmp/wordpress/tests/phpunit
- mkdir -p /tmp/wordpress/src/wp-admin/includes
- mkdir -p /tmp/wordpress/src/wp-includes
# Download the base filesystem class.
- wget -O /tmp/wordpress/src/wp-admin/includes/class-wp-filesystem-base.php http://develop.svn.wordpress.org/branches/$WP_VERSION/src/wp-admin/includes/class-wp-filesystem-base.php
# Download the WP_Error class, it is a dependency of the filesystem classes.
- wget -O /tmp/wordpress/src/wp-includes/class-wp-error.php http://develop.svn.wordpress.org/branches/$WP_VERSION/src/wp-includes/class-wp-error.php
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- |
if [[ ${TRAVIS_PHP_VERSION:0:2} == "7." || $TRAVIS_PHP_VERSION == nightly || $TRAVIS_PHP_VERSION == hhvm ]]; then
composer global require "phpunit/phpunit=5.7.*"
fi
script:
- phpunit