-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
73 lines (67 loc) · 1.99 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
72
73
language: php
sudo: required
dist: trusty
services:
- docker
matrix:
include:
- php: nightly
env:
- WP_VERSION=latest
- CC_TEST_REPORTER_ID=62ea428024560852130fdce61b1b1f8753028c8c6c6a3ef71a3c8deb77ba887f
- GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi)
- php: 7.1
env:
- WP_VERSION=latest
- CC_TEST_REPORTER_ID=62ea428024560852130fdce61b1b1f8753028c8c6c6a3ef71a3c8deb77ba887f
- GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi)
- php: 5.6
env: WP_VERSION=latest
- php: 5.6
env: WP_VERSION=3.8
# Remove 5.3 or Travis build becomes too large.
# - php: 7.1
# env: WP_VERSION=latest SWITCH_TO_PHP=5.3
# - php: 7.1
# env: WP_VERSION=3.8 SWITCH_TO_PHP=5.3
- php: 7.1
env: WP_VERSION=latest SWITCH_TO_PHP=5.2
- php: 7.1
env: WP_VERSION=3.8 SWITCH_TO_PHP=5.2
- php: 5.4
env: WP_VERSION=latest
- php: 5.4
env: WP_VERSION=3.8
fast_finish: true
allow_failures:
- env: WP_VERSION=3.8
php: nightly
- env: WP_VERSION=3.8
php: 7.1
- env: WP_VERSION=latest
php: nightly
cache:
directories:
- vendor
- $HOME/.composer/cache
- $HOME/.phpbrew
script: ./tests/bin/run-wp-unit-tests.sh
after_script: ./tests/bin/after-run-wp-unit-tests.sh
branches:
only:
- master
- trunk
notifications:
slack:
rooms:
- secure: g3L0XaiaUjUeBoNMLXx4pdz+7JudZhFGPY1mOX1WkC4B0zo+M/tGdhLLz/
on_success: never
on_failure: change
webhooks:
urls:
- https://webhooks.gitter.im/e/00b1df026574cdaeb815
on_success: never # options: [always|never|change] default: always
on_failure: change # options: [always|never|change] default: always
email:
on_success: never # default: change
on_failure: change # default: always