forked from pods-framework/pods
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (45 loc) · 1.44 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
language: php
sudo: false
php:
- 7.1
env:
- WP_VERSION=nightly WP_MULTISITE=0 NODE_RELEASE=stable
- WP_VERSION=latest WP_MULTISITE=0 NODE_RELEASE=stable
- WP_VERSION=latest WP_MULTISITE=1 NODE_RELEASE=stable
matrix:
allow_failures:
- env: WP_VERSION=nightly WP_MULTISITE=0 NODE_RELEASE=stable
include:
- php: 7.2
env: WP_VERSION=latest WP_MULTISITE=0 NODE_RELEASE=stable
- php: 7.0
env: WP_VERSION=latest WP_MULTISITE=0 NODE_RELEASE=stable
- php: 5.6
env: WP_VERSION=latest WP_MULTISITE=0 NODE_RELEASE=stable
- php: 5.3
env: WP_VERSION=4.5 WP_MULTISITE=0 NODE_RELEASE=7
dist: precise
## Cache composer and node bits
cache:
apt: true
directories:
- vendor
- node_modules
- $HOME/.composer/cache
before_install:
- | # Only do npm install if we're running the latest stable node (Pipe preserves subsequent whitespace)
if [ $NODE_RELEASE == "stable" ]; then
. $HOME/.nvm/nvm.sh;
nvm install ${NODE_RELEASE};
npm install;
fi
before_script:
- bash bin/init.sh
- bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
- ln -s . /tmp/wordpress/wp-content/plugins/pods
script:
- vendor/bin/phpunit
- | # Only run js tests if we're running the latest stable node (Pipe preserves subsequent whitespace)
if [ $NODE_RELEASE == "stable" ]; then
npm run test-dfv;
fi