Skip to content

Commit

Permalink
adjust ci/templates/.travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Mar 8, 2019
1 parent fb87df2 commit 912c27d
Showing 1 changed file with 9 additions and 28 deletions.
37 changes: 9 additions & 28 deletions ci/templates/.travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dist: xenial
language: python
sudo: false
cache: pip
cache: false
env:
global:
- LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so
Expand All @@ -11,11 +11,13 @@ env:
matrix:
include:
{%- for env in tox_environments %}{{ '' }}
- python: '{{ env.split("-")[0] if env.startswith("pypy") else "{0[2]}.{0[3]}".format(env) }}'
{% if env.startswith('py37') %}
dist: xenial
sudo: required
{% endif %}
{% if env.startswith("pypy-") %}
- python: 'pypy2.7-6.0'
{% elif env.startswith("pypy3-") %}
- python: 'pypy3.5-6.0'
{% else %}
- python: '{{ "{0[2]}.{0[3]}".format(env) }}'
{% endif %}
env:
- TOXENV={{ env }}{% if 'cover' in env %},report,coveralls,codecov{% endif -%}
{%- endfor %}{{ '' }}
Expand All @@ -29,27 +31,6 @@ install:
- easy_install --version
- pip --version
- tox --version
- |
set -ex
if [[ $TRAVIS_PYTHON_VERSION == 'pypy' ]]; then
(cd $HOME
wget https://bitbucket.org/pypy/pypy/downloads/pypy2-v6.0.0-linux64.tar.bz2
tar xf pypy2-*.tar.bz2
pypy2-*/bin/pypy -m ensurepip
pypy2-*/bin/pypy -m pip install -U virtualenv)
export PATH=$(echo $HOME/pypy2-*/bin):$PATH
export TOXPYTHON=$(echo $HOME/pypy2-*/bin/pypy)
fi
if [[ $TRAVIS_PYTHON_VERSION == 'pypy3' ]]; then
(cd $HOME
wget https://bitbucket.org/pypy/pypy/downloads/pypy3-v6.0.0-linux64.tar.bz2
tar xf pypy3-*.tar.bz2
pypy3-*/bin/pypy3 -m ensurepip
pypy3-*/bin/pypy3 -m pip install -U virtualenv)
export PATH=$(echo $HOME/pypy3-*/bin):$PATH
export TOXPYTHON=$(echo $HOME/pypy3-*/bin/pypy3)
fi
set +x
script:
- tox -v
after_failure:
Expand Down

0 comments on commit 912c27d

Please sign in to comment.