This repository has been archived by the owner on Aug 15, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
85 lines (74 loc) · 1.76 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
# Travis CI Configuration File
# Tell Travis CI we're using PHP
language: php
sudo: false
matrix:
include:
- php: 5.6
env: WP_TRAVISCI=travis:phpunit WP_VERSION=nightly
- php: 5.6
env: WP_TRAVISCI=travis:phpunit WP_VERSION=latest
- php: 5.6
env: WP_TRAVISCI=travis:phpvalidate
- php: 5.5
env: WP_TRAVISCI=travis:phpunit WP_VERSION=nightly
- php: 5.4
env: WP_TRAVISCI=travis:phpunit WP_VERSION=nightly
- php: 5.3
env: WP_TRAVISCI=travis:phpunit WP_VERSION=nightly
- php: 5.2
env: WP_TRAVISCI=travis:phpunit WP_VERSION=nightly
- php: hhvm
env: WP_TRAVISCI=travis:phpunit WP_VERSION=nightly
- php: 7.0
env: WP_TRAVISCI=travis:phpunit WP_VERSION=nightly
allow_failures:
- php: hhvm
fast_finish: true
cache:
directories:
- vendor
- $HOME/.composer/cache
- node_modules
before_install:
# set up WP install
- bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
# prepare for running the tests
- cd $TRAVIS_BUILD_DIR
- npm install -g npm
- npm install -g grunt-cli
- npm install
- node --version
- npm --version
- grunt --version
before_script:
# Setup Coveralls
- |
if [[ "$WP_TRAVISCI" == "travis:phpvalidate" ]] ; then
composer self-update
composer install --no-interaction
fi
# Setup Coveralls
- |
if [[ "$WP_TRAVISCI" == "travis:codecoverage" ]] ; then
composer self-update
composer install --no-interaction
fi
script:
- grunt $WP_TRAVISCI
after_script:
# Push coverage off to Codecov
- |
if [[ "$WP_TRAVISCI" == "travis:codecoverage" ]] ; then
bash <(curl -s https://codecov.io/bash)
fi
git:
depth: 1
branches:
only:
- master
- develop
notifications:
email:
on_success: never
on_failure: change