Procházet zdrojové kódy

Separate installation/testing into travis's phases

Also use travis_retry in case we have hiccups installing dependencies.
Hugo Osvaldo Barrera před 8 roky
rodič
revize
23d34abc59
1 změnil soubory, kde provedl 5 přidání a 4 odebrání
  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