forked from wp-shortcake/shortcake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (51 loc) · 1.21 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
sudo: false
language: php
matrix:
include:
- php: 5.2
env: WP_VERSION=latest WP_MULTISITE=0 WP_TRAVISCI=travis:phpunit
- php: 5.6
env: WP_VERSION=latest WP_MULTISITE=0 WP_TRAVISCI=travis:phpunit
- php: 5.6
env: WP_VERSION=latest WP_MULTISITE=1 WP_TRAVISCI=travis:phpunit
- php: 5.6
env: WP_TRAVISCI=travis:js-tests
- php: 5.6
env: WP_TRAVISCI=travis:php-lint
cache:
- composer
- $HOME/.composer/cache
- npm
before_script:
- |
if [[ "$WP_TRAVISCI" == "travis:phpunit" ]] ; then
bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
fi
- |
if [[ "$WP_TRAVISCI" == "travis:php-lint" ]] || [[ "$WP_TRAVISCI" == "travis:js-tests" ]] ; then
npm install -g grunt-cli
npm install
fi
- |
if [[ "$WP_TRAVISCI" == "travis:php-lint" ]] ; then
composer install
fi
script:
- |
if [[ "$WP_TRAVISCI" == "travis:phpunit" ]] ; then
phpunit
fi
- |
if [[ "$WP_TRAVISCI" == "travis:php-lint" ]] ; then
grunt phpcs
fi
- |
if [[ "$WP_TRAVISCI" == "travis:js-tests" ]] ; then
grunt jasmine
fi
notifications:
email:
on_success: never
branches:
only:
- master