From f503750b6a83fcc5e7c18951e66ceecee1ece687 Mon Sep 17 00:00:00 2001 From: niphlod Date: Tue, 27 Jan 2015 22:01:09 +0100 Subject: [PATCH] exploiting new travis-ci environment --- .travis.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index ad3d7563..77028bbd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,11 @@ language: python +sudo: false + +cache: + directories: + - $HOME/.pip-cache/ + python: - '2.6' - '2.7' @@ -9,10 +15,10 @@ install: - pip install -e . before_script: - - if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install unittest2; fi - #Temporal solution to travis issue #155 - - sudo chmod 777 /dev/shm - - sudo rm -rf /dev/shm && sudo ln -s /run/shm /dev/shm + - if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install --download-cache $HOME/.pip-cache unittest2; fi + - if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install --download-cache $HOME/.pip-cache coverage; fi; + - if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install --download-cache $HOME/.pip-cache python-coveralls; fi + script: export COVERAGE_PROCESS_START=gluon/tests/coverage.ini; ./web2py.py --run_system_tests --with_coverage