2014-06-21 22:05:19 +02:00
|
|
|
# Travis CI Configuration File
|
|
|
|
|
|
|
|
# Tell Travis CI we're using PHP
|
2013-12-02 20:41:26 +01:00
|
|
|
language: php
|
|
|
|
|
2014-06-21 22:05:19 +02:00
|
|
|
# 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
|
|
|
|
|
|
|
|
# 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/youremptytestdbnamehere/wordpress_tests/" wp-tests-config.php
|
|
|
|
sed -i "s/yourusernamehere/travis/" wp-tests-config.php
|
|
|
|
sed -i "s/yourpasswordhere//" wp-tests-config.php
|
|
|
|
svn checkout https://plugins.svn.wordpress.org/wordpress-importer/trunk tests/phpunit/data/plugins/wordpress-importer
|
|
|
|
fi
|
2013-12-02 20:41:26 +01:00
|
|
|
|
2014-06-21 22:05:19 +02:00
|
|
|
# Before script, failures in this section will result in build status 'failed'
|
2013-12-02 20:41:26 +01:00
|
|
|
before_script:
|
2014-06-21 22:05:19 +02:00
|
|
|
- npm install -g grunt-cli
|
|
|
|
- npm install
|
2013-12-02 20:41:26 +01:00
|
|
|
|
2014-06-21 22:05:19 +02:00
|
|
|
# Script, failures in this section will result in build status 'failed'
|
|
|
|
script: grunt $WP_TRAVISCI
|