forked from irfaardy/raja-ongkir
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
45 lines (40 loc) · 1.27 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
# Travis CI Configuration File
# Tell Travis CI we're using PHP
language: php
# Build matrix options
matrix:
include:
- php: 5.5
env: WP_TRAVISCI=travis:js
- php: 5.2
env: WP_TRAVISCI=travis:phpunit
- php: 5.3
env: WP_TRAVISCI=travis:phpunit
- php: 5.4
env: WP_TRAVISCI=travis:phpunit
- php: 5.5
env: WP_TRAVISCI=travis:phpunit
- php: 5.6
env: WP_TRAVISCI=travis:phpunit
- php: hhvm
env: WP_TRAVISCI=travis:phpunit
allow_failures:
- php: 5.6
- php: hhvm
fast_finish: true
env:
- WP_VERSION=master WP_MULTISITE=1
# Before install, failures in this section will result in build status 'errored'
before_install:
- WP_CORE_DIR=/tmp/wordpress/
- >
if [[ "$WP_TRAVISCI" == "travis:phpunit" ]]; then
mysql -e "CREATE DATABASE wordpress_tests;" -uroot
cp wp-tests-config-sample.php wp-tests-config.php
sed -i "s/pdb/wordpress_tests/" wp-tests-config.php
sed -i "s/pdbuser/travis/" wp-tests-config.php
sed -i "s/04-3J31cd08k5B//" wp-tests-config.php
svn checkout https://plugins.svn.wordpress.org/wordpress-importer/trunk tests/phpunit/data/plugins/wordpress-importer
fi
# Script, failures in this section will result in build status 'failed'
script: ./civic.sh