-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy path.travis.yml
executable file
·57 lines (49 loc) · 1.31 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
language: php
services:
- mysql
notifications:
email:
on_success: never
on_failure: change
cache:
apt: true
directories:
- node_modules
env:
global:
- WP_TRAVISCI=travis:phpunit WP_VERSION=latest WP_MULTISITE=0 CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
matrix:
include:
- php: 7.0
env: WP_TRAVISCI=travis:lint
- php: 5.3
env: WP_TRAVISCI=travis:phpunit WP_VERSION=5.1.6 WP_MULTISITE=0 CXX=g++-4.8
dist: precise
before_install:
- curl -sSfL -o ~/.phpenv/versions/5.3/bin/phpunit https://phar.phpunit.de/phpunit-4.phar
- php: 7.0
before_install:
- curl -sSfL -o ~/.phpenv/versions/7.0/bin/phpunit https://phar.phpunit.de/phpunit-6.phar
- php: 7.1
before_install:
- curl -sSfL -o ~/.phpenv/versions/7.1/bin/phpunit https://phar.phpunit.de/phpunit-7.phar
- php: nightly
- php: 7.0
env: WP_MULTISITE=1
before_install:
- curl -sSfL -o ~/.phpenv/versions/7.0/bin/phpunit https://phar.phpunit.de/phpunit-6.phar
allow_failures:
- php: nightly
before_script:
- bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
- nvm install 8
- npm install -g grunt-cli
- npm install
- npm prune
script: grunt $WP_TRAVISCI