Make WordPress Core

Ticket #44858: 44858.diff

File 44858.diff, 1.4 KB (added by johnbillion, 8 years ago)
  • .travis.yml

    diff --git .travis.yml .travis.yml
    index ec458a3691..49d2d67274 100644
    before_install:  
    4141      sed -i "s/youremptytestdbnamehere/wordpress_tests/" wp-tests-config.php
    4242      sed -i "s/yourusernamehere/root/" wp-tests-config.php
    4343      sed -i "s/yourpasswordhere//" wp-tests-config.php
    44       svn checkout https://plugins.svn.wordpress.org/wordpress-importer/tags/0.6.3/ tests/phpunit/data/plugins/wordpress-importer
     44      travis_retry svn checkout https://plugins.svn.wordpress.org/wordpress-importer/tags/0.6.3/ tests/phpunit/data/plugins/wordpress-importer
    4545  fi
    4646- |
    4747  if [[ "$WP_TRAVIS_OBJECT_CACHE" == "true" ]]; then
    … … before_script:  
    6868    case "$TRAVIS_PHP_VERSION" in
    6969      7.2|7.1|7.0|nightly)
    7070        echo "Using PHPUnit 6.x"
    71         composer global require "phpunit/phpunit:^6"
     71        travis_retry composer global require "phpunit/phpunit:^6"
    7272        ;;
    7373      5.6|5.5|5.4|5.3)
    7474        echo "Using PHPUnit 4.x"
    75         composer global require "phpunit/phpunit:^4"
     75        travis_retry composer global require "phpunit/phpunit:^4"
    7676        ;;
    7777      5.2)
    7878        # Do nothing, use default PHPUnit 3.6.x
    … … before_script:  
    8888  # We only need to run composer install on the code formatting job.
    8989  if [[ "$WP_TRAVISCI" == "travis:format" ]]; then
    9090    composer --version
    91     composer install
     91    travis_retry composer install
    9292  fi
    9393- npm --version
    9494- node --version