forked from GlotPress/GlotPress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (39 loc) · 1.25 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
sudo: false
language:
- php
## Cache composer bits
cache:
directories:
- vendor
- $HOME/.composer/cache
matrix:
include:
- php: 5.3
env: WP_VERSION=latest WP_MULTISITE=0
- php: 5.3
env: WP_VERSION=trunk WP_MULTISITE=0
- php: 5.4
env: WP_VERSION=latest WP_MULTISITE=0
- php: 5.5
env: WP_VERSION=latest WP_MULTISITE=0
- php: 5.6
env: WP_VERSION=trunk WP_MULTISITE=1
- php: 5.6
env: WP_VERSION=trunk WP_MULTISITE=0 WP_TRAVISCI=codecoverage
- php: 7.0
env: WP_VERSION=trunk WP_MULTISITE=0
install:
- export DEV_LIB_PATH=dev-lib
- if [ ! -e "$DEV_LIB_PATH" ] && [ -L .travis.yml ]; then export DEV_LIB_PATH=$( dirname $( readlink .travis.yml ) ); fi
- if [ ! -e "$DEV_LIB_PATH" ]; then git clone https://github.com/xwp/wp-dev-lib.git $DEV_LIB_PATH; fi
- source $DEV_LIB_PATH/travis.install.sh
script:
- source $DEV_LIB_PATH/travis.script.sh
after_script:
# Push coverage off to Codecov
- |
if [[ "$WP_TRAVISCI" == "codecoverage" ]] && [ -e "/tmp/wordpress/src/wp-content/plugins/GlotPress-WP/build/logs/clover.xml" ] ; then
bash <(curl -s https://codecov.io/bash) -f /tmp/wordpress/src/wp-content/plugins/GlotPress-WP/build/logs/clover.xml
fi
- |
source $DEV_LIB_PATH/travis.after_script.sh