forked from WordPress/gutenberg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (47 loc) · 1.08 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
sudo: required
dist: trusty
language: php
services:
- docker
notifications:
email:
on_success: never
on_failure: change
cache:
directories:
- $HOME/.composer/cache
- $HOME/.phpbrew
before_install:
- nvm install && nvm use
jobs:
include:
- stage: test
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
script:
- npm install || exit 1
- npm run build || exit 1
- ./bin/run-e2e-tests.sh || exit 1