mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-22 22:45:09 +01:00
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.
This commit is contained in:
parent
45d4ea083d
commit
db8ae7602b
2 changed files with 14 additions and 1 deletions
11
.travis.yml
11
.travis.yml
|
@ -7,17 +7,28 @@ python:
|
||||||
- "3.6"
|
- "3.6"
|
||||||
- "pypy"
|
- "pypy"
|
||||||
- "pypy3"
|
- "pypy3"
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- $HOME/.cache/pip
|
||||||
|
before_cache:
|
||||||
|
- rm -f $HOME/.cache/pip/log/debug.log
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- pip install coveralls
|
- pip install coveralls
|
||||||
|
- pip install -U wheels
|
||||||
- pip install -r requirements.txt
|
- pip install -r requirements.txt
|
||||||
- pip install -r requirements-dev.txt
|
- pip install -r requirements-dev.txt
|
||||||
- if [[ $TRAVIS_PYTHON_VERSION != 'pypy'* ]]; then pip install ujson; fi
|
- if [[ $TRAVIS_PYTHON_VERSION != 'pypy'* ]]; then pip install ujson; fi
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- nosetests -v --with-flaky --no-flaky-report --with-coverage --cover-package=telegram/ tests
|
- 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
|
- if [[ $TRAVIS_PYTHON_VERSION == 3.5 ]]; then pre-commit run --all-files; fi
|
||||||
- python ./setup.py bdist_dumb
|
- python ./setup.py bdist_dumb
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
coveralls
|
coveralls
|
||||||
|
|
|
@ -15,12 +15,14 @@ environment:
|
||||||
install:
|
install:
|
||||||
# We need wheel installed to build wheels
|
# We need wheel installed to build wheels
|
||||||
- "git submodule update --init --recursive"
|
- "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.txt"
|
||||||
- "%PYTHON%\\python.exe -m pip install -r requirements-dev.txt"
|
- "%PYTHON%\\python.exe -m pip install -r requirements-dev.txt"
|
||||||
|
|
||||||
build: off
|
build: off
|
||||||
|
|
||||||
|
cache: C:\Users\appveyor\pip\wheels
|
||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
- "%python%\\Scripts\\nosetests -v --with-flaky --no-flaky-report tests"
|
- "%python%\\Scripts\\nosetests -v --with-flaky --no-flaky-report tests"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue