Skip to content

Commit b386bb1

Browse files
authored
Merge pull request #194 from jamesls/travis-26
Update travis to pass on all supported python versions
2 parents bf25216 + e756c56 commit b386bb1

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
dist: trusty
12
language: python
23
python:
34
- "2.6"
@@ -12,6 +13,8 @@ matrix:
1213
include:
1314
- python: "3.7"
1415
dist: xenial
16+
- python: "3.8"
17+
dist: xenial
1518
before_install:
1619
- pip install codecov
1720
install:
@@ -22,6 +25,6 @@ install:
2225
- pip install dist/*.whl
2326
script:
2427
- cd tests/ && nosetests --with-coverage --cover-package jmespath .
25-
- if [[ $TRAVIS_PYTHON_VERSION != '2.6' ]]; then JP_MAX_EXAMPLES=10000 nosetests ../extra/test_hypothesis.py; fi
28+
- if [[ $TRAVIS_PYTHON_VERSION != '2.6' ]] && [[ $TRAVIS_PYTHON_VERSION != '3.8' ]]; then JP_MAX_EXAMPLES=10000 nosetests ../extra/test_hypothesis.py; fi
2629
after_success:
2730
- codecov

extra/test_hypothesis.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
MAX_EXAMPLES = int(os.environ.get('JP_MAX_EXAMPLES', 1000))
3333
BASE_SETTINGS = {
3434
'max_examples': MAX_EXAMPLES,
35-
'suppress_health_check': [HealthCheck.too_slow],
35+
'suppress_health_check': [HealthCheck.too_slow,
36+
HealthCheck.filter_too_much,
37+
HealthCheck.data_too_large],
3638
}
3739

3840

requirements.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@ nose==1.2.1
22
py==1.4.12
33
tox==1.4.2
44
wheel==0.24.0
5-
coverage==3.7.1
6-
hypothesis==3.1.0
5+
coverage==5.0.3 ; python_version == '3.8'
6+
coverage==3.7.1 ; python_version != '3.8'
7+
hypothesis==3.1.0 ; python_version != '3.8'
8+
hypothesis==5.5.4 ; python_version == '3.8'

0 commit comments

Comments
 (0)