forked from Automattic/jetpack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
90 lines (77 loc) · 2.46 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Travis CI Configuration File
# Tell Travis CI we're using PHP
language: php
# Setup a global environemnt and overide as needed
env:
global:
- WP_TRAVISCI=phpunit
# Next we define our matrix of additional build configurations to test against.
# The versions listed above will automatically create our first configuration,
# so it doesn't need to be re-defined below.
# Test WP trunk/master and two latest versions on minimum (5.2).
# Test WP latest two versions (4.5, 4.3) on most popular (5.5, 5.6).
# Test WP latest stable (4.5) on other supported PHP (5.3, 5.4).
# Test WP trunk/master on edge platforms (7.0, hhvm, PHP nightly).
# WP_VERSION specifies the tag to use. The way these tests are configured to run
# requires at least WordPress 3.8. Specify "master" to test against SVN trunk.
matrix:
include:
- php: "5.6"
env: WP_TRAVISCI="npm run test-client"
- php: "5.2"
- php: "5.3"
- php: "5.5"
- php: "5.6"
- php: "7.0"
#
# - php: hhvm
# env: WP_VERSION=master
# sudo: required
# dist: trusty
# group: edge
# addons:
# apt:
# packages:
# - mysql-server-5.6
# - mysql-client-core-5.6
# - mysql-client-5.6
#
# Allow failure tests did not prove that useful, but we might bring them back
# so leaving this here as a reminder
#
# allow_failures:
# - php: "hhvm"
# - php: "nightly"
# whitelist branches for the "push" build check.
branches:
only:
- master
- master-stable
- /^branch-.*$/
# Clones WordPress and configures our testing environment.
before_script:
- phpenv config-rm xdebug.ini
- source ~/.nvm/nvm.sh && nvm install 5
- export PLUGIN_SLUG=$(basename $(pwd))
- ./tests/prepare-wordpress.sh
- mysql -e "set global wait_timeout = 3600;"
script:
- ./tests/run-travis.sh
sudo: false
notifications:
email:
# Encrypted Slack notification address.
- secure: "WQdTdmYuifSW0hiJGXpQGKystMASC50QvxHlyUL5SM3h5GP8aCgeSsHuXvKPe3dT3Pffhk0dSHBfDtdWFwSHW/upURhg0vs4dm7+nxxvGZiTPzKcuAIjgvCoqWM7teyda/XqFGNSnv+XsT34uoyPhhFgd45T3oS+QQ3aNCruFak="
addons:
code_climate:
repo_token: 683bd559e5214ca3b721092af177893f05765ba90d2589fcf35d7e85c6ea01e8