forked from adamsilverstein/wp-post-meta-revisions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (42 loc) · 1.17 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
language: php
language: php
sudo: false
matrix:
include:
- php: 7.1
env: PHPUNIT_VERSION="^7"
env: WP_TRAVISCI=travis:js
- php: 7.3
env: PHPUNIT_VERSION="^7"
- php: 7.2
env: PHPUNIT_VERSION="^7"
- php: 7.1
env: PHPUNIT_VERSION="^7"
- php: 7.0
- php: 5.6
- php: 5.6
env: WP_TRAVIS_OBJECT_CACHE=true
services: memcached
- php: 5.5
- php: 5.3
dist: precise
- php: 5.2
dist: precise
- php: nightly
allow_failures:
- php: nightly
fast_finish: true
env:
global:
- WP_VERSION=master # Git equivalent of SVN /trunk
- PHPUNIT_VERSION="travis"
before_script:
- bash bin/install-wp-tests.sh wordpress_test root '' localhost master
# Before install, failures in this section will result in build status 'errored'
before_install:
# setup WP_DEVELOP_DIR (needed for bbPress to bootstrap WP PHPUnit tests)
- WP_DEVELOP_DIR=/tmp/wordpress
# clone the WordPress develop repo
- git clone --depth=1 --branch="master" git://develop.git.wordpress.org/ $WP_DEVELOP_DIR
- WP_DEVELOP_DIR=/tmp/wordpress/src
- if [[ $PHPUNIT_VERSION != "travis" ]]; then composer require phpunit/phpunit:${PHPUNIT_VERSION}; fi