Make WordPress Core

Changeset 28799 for trunk/.travis.yml


Ignore:
Timestamp:
06/21/2014 08:05:19 PM (10 years ago)
Author:
wonderboymusic
Message:

Improve Travis CI configuration for better performance.

Props netweb, jorbin.
Fixes #28301.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.travis.yml

    r27267 r28799  
     1# Travis CI Configuration File
     2
     3# Tell Travis CI we're using PHP
    14language: php
    25
    3 php:
    4     - "5.2"
    5     - "5.3"
    6     - "5.4"
    7     - "5.5"
     6# Build matrix options
     7matrix:
     8  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
     23  allow_failures:
     24    - php: 5.6
     25    - php: hhvm
     26  fast_finish: true
    827
     28# Before install, failures in this section will result in build status 'errored'
     29before_install:
     30  - WP_CORE_DIR=/tmp/wordpress/
     31  - >
     32    if [[ "$WP_TRAVISCI" == "travis:phpunit" ]]; then
     33        mysql -e "CREATE DATABASE wordpress_tests;" -uroot
     34        cp wp-tests-config-sample.php wp-tests-config.php
     35        sed -i "s/youremptytestdbnamehere/wordpress_tests/" wp-tests-config.php
     36        sed -i "s/yourusernamehere/travis/" wp-tests-config.php
     37        sed -i "s/yourpasswordhere//" wp-tests-config.php
     38        svn checkout https://plugins.svn.wordpress.org/wordpress-importer/trunk tests/phpunit/data/plugins/wordpress-importer
     39    fi
     40
     41# Before script, failures in this section will result in build status 'failed'
    942before_script:
    10     - mysql -e "CREATE DATABASE wordpress_tests;" -uroot
    11     - cp wp-tests-config-sample.php wp-tests-config.php
    12     - sed -i "s/youremptytestdbnamehere/wordpress_tests/" wp-tests-config.php
    13     - sed -i "s/yourusernamehere/travis/" wp-tests-config.php
    14     - sed -i "s/yourpasswordhere//" wp-tests-config.php
    15     - svn checkout https://plugins.svn.wordpress.org/wordpress-importer/trunk tests/phpunit/data/plugins/wordpress-importer
    16     - npm install -g grunt-cli
    17     - npm install
     43  - npm install -g grunt-cli
     44  - npm install
    1845
    19 script: grunt travis
     46# Script, failures in this section will result in build status 'failed'
     47script: grunt $WP_TRAVISCI
Note: See TracChangeset for help on using the changeset viewer.