Skip to content

Commit

Permalink
ci: Use "dist: xenial" in Travis
Browse files Browse the repository at this point in the history
To test in python >= 3.7 it is required to have a newer Ubuntu version.

Xenial has a newer version of PyPy.  Update Travis template to use
'pypy3.5'.

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
  • Loading branch information
ansasaki committed Aug 2, 2019
1 parent f5100a7 commit e852b0d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
@@ -1,3 +1,4 @@
dist: xenial
language: python
sudo: false
cache: pip
Expand Down Expand Up @@ -40,10 +41,10 @@ matrix:
- python: '3.7'
env:
- TOXENV=3.7-nocov
- python: 'pypy-5.4'
- python: 'pypy3.5'
env:
- TOXENV=pypy-cover,report,coveralls,codecov
- python: 'pypy-5.4'
- python: 'pypy3.5'
env:
- TOXENV=pypy-nocov
before_install:
Expand Down
3 changes: 2 additions & 1 deletion ci/templates/.travis.yml
@@ -1,3 +1,4 @@
dist: xenial
language: python
sudo: false
cache: pip
Expand All @@ -11,7 +12,7 @@ env:
matrix:
include:
{%- for env, config in tox_environments|dictsort %}{{ '' }}
- python: '{{ '{0[0]}-5.4'.format(env.split('-')) if env.startswith('pypy') else env.split('-')[0] }}'
- python: '{{ '{0[0]}3.5'.format(env.split('-')) if env.startswith('pypy') else env.split('-')[0] }}'
env:
- TOXENV={{ env }}{% if "true" in config.cover %},report,coveralls,codecov{% endif -%}
{% endfor %}
Expand Down

0 comments on commit e852b0d

Please sign in to comment.