From 1ce93e4e63e7f9f98b4e418110effc1fd8c86c2c Mon Sep 17 00:00:00 2001
From: Korabelnikov Aleks <nesoriti@yandex.ru>
Date: Tue, 26 Nov 2019 17:10:51 +0300
Subject: [PATCH] Update .travis.yml (#1715)

cache pip,
use 'before script' as it done in mmcv,
see https://github.com/open-mmlab/mmdetection/issues/1658
---
 .travis.yml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index c00b6cd..a813c5e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -7,6 +7,7 @@ python:
   - "3.7"
 
 env: CUDA=10.1.105-1 CUDA_SHORT=10.1 UBUNTU_VERSION=ubuntu1804
+cache: pip
 
 # Ref to CUDA installation in Travis: https://github.com/jeremad/cuda-travis
 before_install:
@@ -27,10 +28,12 @@ install:
   - pip install -r requirements.txt
   - pip install -r tests/requirements.txt
 
-script:
+before_script:
   - flake8 .
   - isort -rc --check-only --diff mmdet/ tools/ tests/
   - yapf -r -d --style .style.yapf mmdet/ tools/ tests/
+
+script:
   - python setup.py check -m -s
   - python setup.py build_ext --inplace
   - coverage run --source mmdet -m py.test -v --xdoctest-modules tests mmdet
-- 
GitLab