浏览代码

Separate installation/testing into travis's phases

Also use travis_retry in case we have hiccups installing dependencies.
Hugo Osvaldo Barrera 8 年之前
父节点
当前提交
23d34abc59
共有 1 个文件被更改,包括 5 次插入4 次删除
  1. 5 4
      .travis.yml

+ 5 - 4
.travis.yml

@@ -25,17 +25,18 @@ matrix:
       env: TEST_REQUIRE="gevent greenlet geventhttpclient fastimport"
     - python: "3.7-dev"
       env: TEST_REQUIRE="gevent greenlet geventhttpclient fastimport"
-script:
-  - pip install pip --upgrade
-  - pip install $TEST_REQUIRE
-  - pip install coverage codecov
 
+install:
+  - travis_retry pip install -U pip coverage codecov $TEST_REQUIRE
+
+script:
   # Test without c extensions
   - python -m coverage run -p --source=dulwich -m $TEST_RUNNER dulwich.tests.test_suite
 
   # Test with c extensions
   - python setup.py build_ext -i
   - python -m coverage run -p --source=dulwich -m $TEST_RUNNER dulwich.tests.test_suite
+
 after_success:
   - python -m coverage combine
   - codecov