mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-25 19:20:29 +08:00
Merge pull request #5791 from aivus/patch-1
Use travis_retry in .travis.yml
This commit is contained in:
12
.travis.yml
12
.travis.yml
@@ -38,21 +38,21 @@ addons:
|
|||||||
postgresql: "9.3"
|
postgresql: "9.3"
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.3.4.deb && sudo dpkg -i --force-confnew elasticsearch-1.3.4.deb
|
- travis_retry wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.3.4.deb && sudo dpkg -i --force-confnew elasticsearch-1.3.4.deb
|
||||||
- sudo service elasticsearch start
|
- sudo service elasticsearch start
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- composer self-update && composer --version
|
- travis_retry composer self-update && composer --version
|
||||||
- composer global require "fxp/composer-asset-plugin:1.0.0-beta3"
|
- travis_retry composer global require "fxp/composer-asset-plugin:1.0.0-beta3"
|
||||||
- export PATH="$HOME/.composer/vendor/bin:$PATH"
|
- export PATH="$HOME/.composer/vendor/bin:$PATH"
|
||||||
# core framework:
|
# core framework:
|
||||||
- composer install --prefer-dist
|
- travis_retry composer install --prefer-dist
|
||||||
- tests/unit/data/travis/mongodb-setup.sh
|
- tests/unit/data/travis/mongodb-setup.sh
|
||||||
- tests/unit/data/travis/apc-setup.sh
|
- tests/unit/data/travis/apc-setup.sh
|
||||||
- tests/unit/data/travis/memcache-setup.sh
|
- tests/unit/data/travis/memcache-setup.sh
|
||||||
- tests/unit/data/travis/cubrid-setup.sh
|
- tests/unit/data/travis/cubrid-setup.sh
|
||||||
# codeception
|
# codeception
|
||||||
- composer global require "codeception/codeception=2.0.*" "codeception/specify=*" "codeception/verify=*"
|
- travis_retry composer global require "codeception/codeception=2.0.*" "codeception/specify=*" "codeception/verify=*"
|
||||||
# basic and advanced application:
|
# basic and advanced application:
|
||||||
- tests/unit/data/travis/setup-apps.sh
|
- tests/unit/data/travis/setup-apps.sh
|
||||||
|
|
||||||
@@ -88,5 +88,5 @@ script:
|
|||||||
|
|
||||||
after_script:
|
after_script:
|
||||||
- cd ../../..
|
- cd ../../..
|
||||||
- wget https://scrutinizer-ci.com/ocular.phar
|
- travis_retry wget https://scrutinizer-ci.com/ocular.phar
|
||||||
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
|
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
|
||||||
|
|||||||
Reference in New Issue
Block a user