Skip to content

Commit db8ae76

Browse files
committed
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.
1 parent 45d4ea0 commit db8ae76

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.travis.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,28 @@ python:
77
- "3.6"
88
- "pypy"
99
- "pypy3"
10+
1011
branches:
1112
only:
1213
- master
14+
15+
cache:
16+
directories:
17+
- $HOME/.cache/pip
18+
before_cache:
19+
- rm -f $HOME/.cache/pip/log/debug.log
20+
1321
install:
1422
- pip install coveralls
23+
- pip install -U wheels
1524
- pip install -r requirements.txt
1625
- pip install -r requirements-dev.txt
1726
- if [[ $TRAVIS_PYTHON_VERSION != 'pypy'* ]]; then pip install ujson; fi
27+
1828
script:
1929
- nosetests -v --with-flaky --no-flaky-report --with-coverage --cover-package=telegram/ tests
2030
- if [[ $TRAVIS_PYTHON_VERSION == 3.5 ]]; then pre-commit run --all-files; fi
2131
- python ./setup.py bdist_dumb
32+
2233
after_success:
2334
coveralls

appveyor.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@ environment:
1515
install:
1616
# We need wheel installed to build wheels
1717
- "git submodule update --init --recursive"
18-
- "%PYTHON%\\python.exe -m pip install wheel"
18+
- "%PYTHON%\\python.exe -m pip install -U wheel"
1919
- "%PYTHON%\\python.exe -m pip install -r requirements.txt"
2020
- "%PYTHON%\\python.exe -m pip install -r requirements-dev.txt"
2121

2222
build: off
2323

24+
cache: C:\Users\appveyor\pip\wheels
25+
2426
test_script:
2527
- "%python%\\Scripts\\nosetests -v --with-flaky --no-flaky-report tests"
2628

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy