WordPress.org

Make WordPress Core

Changeset 43645


Ignore:
Timestamp:
09/15/2018 09:21:55 AM (11 months ago)
Author:
johnbillion
Message:

Build/Test Tools: Implement the automatic retry functionality that Travis CI provides.

This functionality will cause the command to be retried up to three times in case of a non-zero return value. Implementing it on commands that perform network requests means that intermittent network failures are less likely to cause a build to fail, as they'll be retried up to three times.

See #44858

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.travis.yml

    r43571 r43645  
    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- |
     
    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)
     
    8989  if [[ "$WP_TRAVISCI" == "travis:format" ]]; then
    9090    composer --version
    91     composer install
     91    travis_retry composer install
    9292  fi
    9393- npm --version
Note: See TracChangeset for help on using the changeset viewer.