forked from WordPress/gutenberg
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
71 lines (58 loc) · 1.32 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
sudo: required
dist: trusty
language: php
services:
- docker
notifications:
email:
on_success: never
on_failure: change
cache:
directories:
- $HOME/.composer/cache
- $HOME/.phpbrew
- $HOME/.npm
before_install:
- |
git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.md$)' || {
echo "Only docs were updated, stopping build process."
exit
}
- nvm install && nvm use
- npm install npm -g
branches:
only:
- master
jobs:
include:
- stage: test
env: WP_VERSION=latest
script:
- npm install || exit 1
- npm run ci || exit 1
- stage: test
env: WP_VERSION=latest DOCKER=true
script:
- ./bin/run-wp-unit-tests.sh
- stage: test
php: 5.6
env: WP_VERSION=latest
script:
- ./bin/run-wp-unit-tests.sh
if: branch = master and type != "pull_request"
- stage: test
php: 7.1
env: WP_VERSION=latest SWITCH_TO_PHP=5.3
script:
- ./bin/run-wp-unit-tests.sh
if: branch = master and type != "pull_request"
- stage: test
php: 7.1
env: WP_VERSION=latest SWITCH_TO_PHP=5.2
script:
- ./bin/run-wp-unit-tests.sh
- stage: test
env: WP_VERSION=latest
script:
- npm install || exit 1
- ./bin/run-e2e-tests.sh || exit 1