WordPress.org

Make WordPress Core

Changeset 43724


Ignore:
Timestamp:
10/13/2018 02:51:34 AM (13 months ago)
Author:
pento
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.

Merges [43645] to the 5.0 branch.

Props johnbillion.
Fixes #44858.

Location:
branches/5.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0

  • branches/5.0/.travis.yml

    r43721 r43724  
    4848      sed -i "s/yourusernamehere/root/" wp-tests-config.php
    4949      sed -i "s/yourpasswordhere//" wp-tests-config.php
    50       svn checkout https://plugins.svn.wordpress.org/wordpress-importer/tags/0.6.3/ tests/phpunit/data/plugins/wordpress-importer
     50      travis_retry svn checkout https://plugins.svn.wordpress.org/wordpress-importer/tags/0.6.3/ tests/phpunit/data/plugins/wordpress-importer
    5151  fi
    5252- |
     
    7575      7.3.0RC1|7.2|7.1|7.0|nightly)
    7676        echo "Using PHPUnit 6.x"
    77         composer global require "phpunit/phpunit:^6"
     77        travis_retry composer global require "phpunit/phpunit:^6"
    7878        ;;
    7979      5.6|5.5|5.4|5.3)
    8080        echo "Using PHPUnit 4.x"
    81         composer global require "phpunit/phpunit:^4"
     81        travis_retry composer global require "phpunit/phpunit:^4"
    8282        ;;
    8383      5.2)
     
    9191    esac
    9292  fi
     93- npm --version
    9394- npm --version
    9495- node --version
Note: See TracChangeset for help on using the changeset viewer.