forked from bueltge/wordpress-multisite-enhancements
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (46 loc) · 1.68 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
# Travis CI Configuration file for WordPress plugin test
# https://github.com/bueltge/wordpress-multisite-enhancements
# Tell Travis CI we're using PHP
language:
- php
# Versions of PHP to test against
php:
- 5.3.3
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm
- nightly
# Specify versions of WordPress to test against
# WP_VERSION = WordPress version number (use "master" for SVN trunk)
# WP_MULTISITE = whether to test multisite (use either "0" or "1")
env:
- WP_VERSION=master WP_MULTISITE=1
# Next we define our matrix of additional build configurations to test against.
# The versions listed above will automatically create our first configuration,
# so it doesn't need to be re-defined below.
# WP_VERSION specifies the tag to use. The way these tests are configured to run
# requires at least WordPress 4.0.0 Specify "master" to test against SVN trunk.
# Note that Travis CI supports listing these above to automatically build a
# matrix of configurations, but we're being nice here by manually building a
# total of four configurations even though we're testing 4 versions of PHP
# along with 2 versions of WordPress (which would build 8 configs otherwise).
# This takes half as long to run while still providing adequate coverage.
matrix:
fast_finish: true
allow_failures:
- php: hhvm
- php: nightly
# Clones WordPress and configures our testing environment.
before_script:
- composer install
- wget https://raw.githubusercontent.com/bueltge/wordpress-multisite-enhancements/setup/setup.sh
- source setup.sh
script: phpunit
# wordpress-plugin-tests specific config
# Tells Travis CI not to run unit tests against the setup branch
branches:
except:
- setup