Make WordPress Core

Changeset 30963


Ignore:
Timestamp:
12/17/2014 11:50:37 PM (11 years ago)
Author:
nacin
Message:

Add Slack notifications to Travis CI config. fixes #30755.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.travis.yml

    r29844 r30963  
    1 # Travis CI Configuration File
    2 
    3 # Tell Travis CI we're using PHP
    41language: php
    5 
    6 # Build matrix options
    72matrix:
    83  include:
    9     - php: 5.5
    10       env: WP_TRAVISCI=travis:js
    11     - php: 5.2
    12       env: WP_TRAVISCI=travis:phpunit
    13     - php: 5.3
    14       env: WP_TRAVISCI=travis:phpunit
    15     - php: 5.4
    16       env: WP_TRAVISCI=travis:phpunit
    17     - php: 5.5
    18       env: WP_TRAVISCI=travis:phpunit
    19     - php: 5.6
    20       env: WP_TRAVISCI=travis:phpunit
    21     - php: hhvm
    22       env: WP_TRAVISCI=travis:phpunit
     4  - php: 5.5
     5    env: WP_TRAVISCI=travis:js
     6  - php: 5.2
     7    env: WP_TRAVISCI=travis:phpunit
     8  - php: 5.3
     9    env: WP_TRAVISCI=travis:phpunit
     10  - php: 5.4
     11    env: WP_TRAVISCI=travis:phpunit
     12  - php: 5.5
     13    env: WP_TRAVISCI=travis:phpunit
     14  - php: 5.6
     15    env: WP_TRAVISCI=travis:phpunit
     16  - php: hhvm
     17    env: WP_TRAVISCI=travis:phpunit
    2318  allow_failures:
    24     - php: hhvm
     19  - php: hhvm
    2520  fast_finish: true
    26 
    27 # Before install, failures in this section will result in build status 'errored'
    2821before_install:
    29   - WP_CORE_DIR=/tmp/wordpress/
    30   - >
    31     if [[ "$WP_TRAVISCI" == "travis:phpunit" ]]; then
    32         mysql -e "CREATE DATABASE wordpress_tests;" -uroot
    33         cp wp-tests-config-sample.php wp-tests-config.php
    34         sed -i "s/youremptytestdbnamehere/wordpress_tests/" wp-tests-config.php
    35         sed -i "s/yourusernamehere/travis/" wp-tests-config.php
    36         sed -i "s/yourpasswordhere//" wp-tests-config.php
    37         svn checkout https://plugins.svn.wordpress.org/wordpress-importer/trunk tests/phpunit/data/plugins/wordpress-importer
    38     fi
    39 
    40 # Before script, failures in this section will result in build status 'failed'
     22- WP_CORE_DIR=/tmp/wordpress/
     23- |
     24  if [[ "$WP_TRAVISCI" == "travis:phpunit" ]]; then
     25      mysql -e "CREATE DATABASE wordpress_tests;" -uroot
     26      cp wp-tests-config-sample.php wp-tests-config.php
     27      sed -i "s/youremptytestdbnamehere/wordpress_tests/" wp-tests-config.php
     28      sed -i "s/yourusernamehere/travis/" wp-tests-config.php
     29      sed -i "s/yourpasswordhere//" wp-tests-config.php
     30      svn checkout https://plugins.svn.wordpress.org/wordpress-importer/trunk tests/phpunit/data/plugins/wordpress-importer
     31  fi
    4132before_script:
    42   - npm install -g grunt-cli
    43   - npm install
    44 
    45 # Script, failures in this section will result in build status 'failed'
     33- npm install -g grunt-cli
     34- npm install
    4635script: grunt $WP_TRAVISCI
     36notifications:
     37  slack:
     38    secure: eL9NX6Q1PUUfEeLSrvWka5+uLSFBAhMFAkLTm2/iOcLb8MfGp1pVYpgfZFB6Gi1rmlSk1IDtCsLU1+CYpVrQhIXyur3Ryfm5WFXr51UmCIeMfd+g4jCRw3RK0LTpfAQUcav4DPabphKvI+S1CYdvWFINb/TvbbqGpQIQ/srb8PM=
Note: See TracChangeset for help on using the changeset viewer.