2014-12-23 00:25:40 +01:00
|
|
|
sudo: false
|
2013-12-02 20:41:26 +01:00
|
|
|
language: php
|
2014-06-21 22:05:19 +02:00
|
|
|
matrix:
|
|
|
|
include:
|
2014-12-18 00:50:37 +01:00
|
|
|
- php: 5.5
|
|
|
|
env: WP_TRAVISCI=travis:js
|
|
|
|
- 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
|
2014-06-21 22:05:19 +02:00
|
|
|
allow_failures:
|
2014-12-18 00:50:37 +01:00
|
|
|
- php: hhvm
|
2014-06-21 22:05:19 +02:00
|
|
|
fast_finish: true
|
|
|
|
before_install:
|
2014-12-18 00:50:37 +01:00
|
|
|
- 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
|
|
|
before_script:
|
2014-12-23 00:46:46 +01:00
|
|
|
- npm install -g npm
|
2014-12-18 00:50:37 +01:00
|
|
|
- npm install -g grunt-cli
|
|
|
|
- npm install
|
2014-06-21 22:05:19 +02:00
|
|
|
script: grunt $WP_TRAVISCI
|
2014-12-18 00:50:37 +01:00
|
|
|
notifications:
|
|
|
|
slack:
|
|
|
|
secure: eL9NX6Q1PUUfEeLSrvWka5+uLSFBAhMFAkLTm2/iOcLb8MfGp1pVYpgfZFB6Gi1rmlSk1IDtCsLU1+CYpVrQhIXyur3Ryfm5WFXr51UmCIeMfd+g4jCRw3RK0LTpfAQUcav4DPabphKvI+S1CYdvWFINb/TvbbqGpQIQ/srb8PM=
|