Add Slack notifications to Travis CI config. fixes #30755.
git-svn-id: https://develop.svn.wordpress.org/trunk@30963 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
439d540c20
commit
47d5cadf38
68
.travis.yml
68
.travis.yml
|
@ -1,46 +1,38 @@
|
||||||
# Travis CI Configuration File
|
|
||||||
|
|
||||||
# Tell Travis CI we're using PHP
|
|
||||||
language: php
|
language: php
|
||||||
|
|
||||||
# Build matrix options
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- php: 5.5
|
- php: 5.5
|
||||||
env: WP_TRAVISCI=travis:js
|
env: WP_TRAVISCI=travis:js
|
||||||
- php: 5.2
|
- php: 5.2
|
||||||
env: WP_TRAVISCI=travis:phpunit
|
env: WP_TRAVISCI=travis:phpunit
|
||||||
- php: 5.3
|
- php: 5.3
|
||||||
env: WP_TRAVISCI=travis:phpunit
|
env: WP_TRAVISCI=travis:phpunit
|
||||||
- php: 5.4
|
- php: 5.4
|
||||||
env: WP_TRAVISCI=travis:phpunit
|
env: WP_TRAVISCI=travis:phpunit
|
||||||
- php: 5.5
|
- php: 5.5
|
||||||
env: WP_TRAVISCI=travis:phpunit
|
env: WP_TRAVISCI=travis:phpunit
|
||||||
- php: 5.6
|
- php: 5.6
|
||||||
env: WP_TRAVISCI=travis:phpunit
|
env: WP_TRAVISCI=travis:phpunit
|
||||||
- php: hhvm
|
- php: hhvm
|
||||||
env: WP_TRAVISCI=travis:phpunit
|
env: WP_TRAVISCI=travis:phpunit
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- php: hhvm
|
- php: hhvm
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
|
|
||||||
# Before install, failures in this section will result in build status 'errored'
|
|
||||||
before_install:
|
before_install:
|
||||||
- WP_CORE_DIR=/tmp/wordpress/
|
- WP_CORE_DIR=/tmp/wordpress/
|
||||||
- >
|
- |
|
||||||
if [[ "$WP_TRAVISCI" == "travis:phpunit" ]]; then
|
if [[ "$WP_TRAVISCI" == "travis:phpunit" ]]; then
|
||||||
mysql -e "CREATE DATABASE wordpress_tests;" -uroot
|
mysql -e "CREATE DATABASE wordpress_tests;" -uroot
|
||||||
cp wp-tests-config-sample.php wp-tests-config.php
|
cp wp-tests-config-sample.php wp-tests-config.php
|
||||||
sed -i "s/youremptytestdbnamehere/wordpress_tests/" 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/yourusernamehere/travis/" wp-tests-config.php
|
||||||
sed -i "s/yourpasswordhere//" 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
|
svn checkout https://plugins.svn.wordpress.org/wordpress-importer/trunk tests/phpunit/data/plugins/wordpress-importer
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Before script, failures in this section will result in build status 'failed'
|
|
||||||
before_script:
|
before_script:
|
||||||
- npm install -g grunt-cli
|
- npm install -g grunt-cli
|
||||||
- npm install
|
- npm install
|
||||||
|
|
||||||
# Script, failures in this section will result in build status 'failed'
|
|
||||||
script: grunt $WP_TRAVISCI
|
script: grunt $WP_TRAVISCI
|
||||||
|
notifications:
|
||||||
|
slack:
|
||||||
|
secure: eL9NX6Q1PUUfEeLSrvWka5+uLSFBAhMFAkLTm2/iOcLb8MfGp1pVYpgfZFB6Gi1rmlSk1IDtCsLU1+CYpVrQhIXyur3Ryfm5WFXr51UmCIeMfd+g4jCRw3RK0LTpfAQUcav4DPabphKvI+S1CYdvWFINb/TvbbqGpQIQ/srb8PM=
|
||||||
|
|
Loading…
Reference in New Issue