Bug 1148966 - Use container based travis CI to improve test wait times. r=Callek THUNDERBIRD_31_6_0_BUILD1 THUNDERBIRD_31_6_0_RELEASE
authorRail Aliiev <rail@mozilla.com>
Mon, 30 Mar 2015 03:54:37 -0400
changeset 5607 e4be714c494445f0193752a9da366f5b845b8843
parent 5606 ae27be08774916617f952ef4310f0620013293cd
child 5608 89ec7b7f20ccabab88a07289a337f769d043df69
push id4178
push userraliiev@mozilla.com
push dateMon, 30 Mar 2015 07:54:43 +0000
reviewersCallek
bugs1148966
Bug 1148966 - Use container based travis CI to improve test wait times. r=Callek
.travis.yml
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,27 +1,40 @@
 language: python
 python:
   - "2.7"
 
+sudo: false
+
 env:
+  global:
+    - PIP_FIND_LINKS=file://$HOME/.cache/pip
+    - PIP_CACHE_DIR=$HOME/.cache/pip
+  matrix:
     - TOX_ENV=py27-hg2.6
     - TOX_ENV=py26-hg2.6
     - TOX_ENV=py27-hg3.1
 
+cache:
+  directories:
+    - $HOME/.cache/pip
+    - $TRAVIS_BUILD_DIR/.tox
+
 before_script:
   - git config --global user.email "travis@travis-ci.org"
   - git config --global user.name "Travis McTravis"
   - cp lib/python/mozilla_buildtools/test/hgrc ~/.hgrc
 
 install:
   - pip install tox
 
 script:
   - tox -e $TOX_ENV
+  # Remove logs to avoid cache uploads
+  - rm -rf $HOME/.cache/pip/log
 
 after_script:
   - tox -e py27-coveralls
 
 # currently cannot customise per user fork, see:
 # https://github.com/travis-ci/travis-ci/issues/1094
 # please comment out this section in your personal fork!
 notifications: