-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (44 loc) · 1.01 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
dist: trusty
sudo: false
language: php
php:
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- nightly
- hhvm
matrix:
include:
- php: 5.6
env: WP_VERSION=latest
- php: 5.6
env: WP_VERSION=4.9
- php: 5.6
env: WP_VERSION=4.8
- php: 5.6
env: WP_VERSION=4.7 WP_MULTISITE=1 COVERAGE=1 GRUNT=1
fast_finish: true
allow_failures:
- php: nightly
cache:
yarn: true
directories:
- node_modules
- vendor
- $HOME/.composer/cache
install:
# Install Grunt command line interface (https://github.com/gruntjs/grunt-cli).
- yarn global add grunt-cli
# Install Node.js packages.
- yarn install
# Update Composer itself to the latest version (https://getcomposer.org/doc/03-cli.md#self-update-selfupdate-).
- composer self-update
# Install Composer packages.
- composer install
before_script:
- wget https://raw.githubusercontent.com/wp-cli/sample-plugin/master/bin/install-wp-tests.sh
- bash install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
script:
- grunt phpcs