From db8ae7602b962f2554f7ecd587c174c30531ad79 Mon Sep 17 00:00:00 2001 From: Jacob Bom Date: Thu, 22 Jun 2017 15:49:46 +0200 Subject: [PATCH] Cache pip for travis and appveyor Updating wheels package since caching was introduced in v7 and I'm not sure what version is default on travis. --- .travis.yml | 11 +++++++++++ appveyor.yml | 4 +++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 10f9f98de..1b167a096 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,17 +7,28 @@ python: - "3.6" - "pypy" - "pypy3" + branches: only: - master + +cache: + directories: + - $HOME/.cache/pip +before_cache: + - rm -f $HOME/.cache/pip/log/debug.log + install: - pip install coveralls + - pip install -U wheels - pip install -r requirements.txt - pip install -r requirements-dev.txt - if [[ $TRAVIS_PYTHON_VERSION != 'pypy'* ]]; then pip install ujson; fi + script: - nosetests -v --with-flaky --no-flaky-report --with-coverage --cover-package=telegram/ tests - if [[ $TRAVIS_PYTHON_VERSION == 3.5 ]]; then pre-commit run --all-files; fi - python ./setup.py bdist_dumb + after_success: coveralls diff --git a/appveyor.yml b/appveyor.yml index f0d71990e..ed07e60d7 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -15,12 +15,14 @@ environment: install: # We need wheel installed to build wheels - "git submodule update --init --recursive" - - "%PYTHON%\\python.exe -m pip install wheel" + - "%PYTHON%\\python.exe -m pip install -U wheel" - "%PYTHON%\\python.exe -m pip install -r requirements.txt" - "%PYTHON%\\python.exe -m pip install -r requirements-dev.txt" build: off +cache: C:\Users\appveyor\pip\wheels + test_script: - "%python%\\Scripts\\nosetests -v --with-flaky --no-flaky-report tests"