Wordpress/.travis.yml
Aaron Jorbin 3fa30bdd37 PHP 5.6 test failures shouldn't be allowed.
PHP 5.6 was released on 28 August 2014 and thus tests on it should be on the same level as all of our other PHP tests pass.

Fixes #29682
Props netweb



git-svn-id: https://develop.svn.wordpress.org/trunk@29844 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-06 20:00:54 +00:00

47 lines
1.4 KiB
YAML

# 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: 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
# Before script, failures in this section will result in build status 'failed'
before_script:
- npm install -g grunt-cli
- npm install
# Script, failures in this section will result in build status 'failed'
script: grunt $WP_TRAVISCI