Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d216b83

Browse files
authored
Merge pull request python-telegram-bot#685 from python-telegram-bot/cache-pip-ci
Cache pip for travis and appveyor + update to travis trusty container
2 parents 56949bc + 5b9bb90 commit d216b83

File tree

3 files changed

+24
-7
lines changed

3 files changed

+24
-7
lines changed

.travis.yml

+17-3
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,33 @@ python:
55
- "3.4"
66
- "3.5"
77
- "3.6"
8-
- "pypy"
9-
- "pypy3"
8+
- "pypy-5.7.1"
9+
- "pypy3.5-5.8.0"
10+
11+
dist: trusty
12+
sudo: false
13+
1014
branches:
1115
only:
1216
- master
17+
18+
cache:
19+
directories:
20+
- $HOME/.cache/pip
21+
before_cache:
22+
- rm -f $HOME/.cache/pip/log/debug.log
23+
1324
install:
1425
- pip install coveralls
26+
- pip install -U wheel
1527
- pip install -r requirements.txt
1628
- pip install -r requirements-dev.txt
1729
- if [[ $TRAVIS_PYTHON_VERSION != 'pypy'* ]]; then pip install ujson; fi
30+
1831
script:
1932
- nosetests -v --with-flaky --no-flaky-report --with-coverage --cover-package=telegram/ tests
2033
- if [[ $TRAVIS_PYTHON_VERSION == 3.5 ]]; then pre-commit run --all-files; fi
2134
- python ./setup.py bdist_dumb
35+
2236
after_success:
23-
coveralls
37+
coveralls

appveyor.yml

+3-1
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

tests/test_official.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import inspect
33
import warnings
44
from collections import namedtuple
5+
import platform
56

67
import certifi
78
import logging
@@ -110,9 +111,9 @@ def check_object(h4):
110111

111112

112113
def test_official():
113-
if not sys.version_info >= (3, 5):
114-
warnings.warn('Not running tests, since follow_wrapped is not supported on this platform'
115-
'(python version >= 3.5 required)')
114+
if not sys.version_info >= (3, 5) or platform.python_implementation() != 'CPython':
115+
warnings.warn('Not running "official" tests, since follow_wrapped is not supported'
116+
'on this platform (cpython version >= 3.5 required)')
116117
return
117118

118119
http = urllib3.PoolManager(

0 commit comments

Comments
 (0)