Skip to content

Commit

Permalink
Remove now-unnecessary travis cruft and fix doc envs to use py3.
Browse files Browse the repository at this point in the history
  • Loading branch information
ionelmc committed Mar 12, 2019
1 parent 9f63f45 commit 33737e2
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 70 deletions.
54 changes: 21 additions & 33 deletions {{cookiecutter.repo_name}}/.travis.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
language: python
cache: pip
dist: xenial
env:
global:
- LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so
- SEGFAULT_SIGNALS=all
matrix:
- TOXENV=check
{%- if cookiecutter.sphinx_docs == "yes" %}
- TOXENV=docs
{%- endif %}
matrix:
include:
- python: '3.6'
env:
- TOXENV=check
{%- if cookiecutter.sphinx_docs == "yes" %}
- python: '3.6'
env:
- TOXENV=docs
{%- endif %}
{%- for env in ['py27', 'py34', 'py35', 'py36', 'py37', 'pypy', 'pypy3'] %}{{ '' }}
- python: '{{ env.split("-")[0] if env.startswith("pypy") else "{0[2]}.{0[3]}".format(env) }}'
{%- if env.startswith('py37') %}
dist: xenial
{%- if env.startswith("pypy3") %}
- python: 'pypy3.5-6.0'
{%- elif env.startswith("pypy") %}
- python: 'pypy2.7-6.0'
{%- else %}
- python: '{{ "{0[2]}.{0[3]}".format(env) }}'
{%- endif %}
env:
- TOXENV={{ env }}{% if cookiecutter.test_matrix_separate_coverage == 'yes' %}-cover{% endif %},report
Expand All @@ -23,9 +29,12 @@ matrix:
{%- endif %}
{%- if cookiecutter.codecov == 'yes' %},codecov{% endif %}
{%- if cookiecutter.test_matrix_separate_coverage == 'yes' %}
- python: '{{ env.split("-")[0] if env.startswith("pypy") else "{0[2]}.{0[3]}".format(env) }}'
{%- if env.startswith('py37') %}
dist: xenial
{%- if env.startswith("pypy3") %}
- python: 'pypy3.5-6.0'
{%- elif env.startswith("pypy") %}
- python: 'pypy2.7-6.0'
{%- else %}
- python: '{{ "{0[2]}.{0[3]}".format(env) }}'
{%- endif %}
env:
- TOXENV={{ env }}-nocov
Expand All @@ -41,27 +50,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
54 changes: 21 additions & 33 deletions {{cookiecutter.repo_name}}/ci/templates/.travis.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,28 @@
language: python
cache: pip
dist: xenial
env:
global:
- LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so
- SEGFAULT_SIGNALS=all
matrix:
- TOXENV=check
{%- if cookiecutter.sphinx_docs == "yes" %}
- TOXENV=docs
{%- endif %}
matrix:
include:
- python: '3.6'
env:
- TOXENV=check
{%- if cookiecutter.sphinx_docs == "yes" %}
- python: '3.6'
env:
- TOXENV=docs
{%- endif %}
{% if cookiecutter.test_matrix_configurator == "yes" -%}
{% raw -%}
{%- for env, config in tox_environments|dictsort %}{{ '' }}
- python: '{{ env.split("-")[0] if env.startswith("pypy") else "{0[2]}.{0[3]}".format(env) }}'
{% if env.startswith('py37') %}
dist: xenial
{% if env.startswith("pypy3") %}
- python: 'pypy3.5-6.0'
{% elif env.startswith("pypy") %}
- python: 'pypy2.7-6.0'
{% else %}
- python: '{{ "{0[2]}.{0[3]}".format(env) }}'
{% endif %}
env:
- TOXENV={{ env }}{% if config.cover %},report{% endraw %}
Expand All @@ -30,9 +36,12 @@ matrix:
{% else %}
{%- raw -%}
{%- 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
{% if env.startswith("pypy3") %}
- python: 'pypy3.5-6.0'
{% elif env.startswith("pypy") %}
- python: 'pypy2.7-6.0'
{% else %}
- python: '{{ "{0[2]}.{0[3]}".format(env) }}'
{% endif %}
env:
- TOXENV={{ env }}{% endraw -%}
Expand Down Expand Up @@ -63,27 +72,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
2 changes: 1 addition & 1 deletion {{cookiecutter.repo_name}}/ci/templates/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ envlist =
[testenv]
basepython =
{%- if cookiecutter.sphinx_docs == "yes" %}
{docs,spell}: {env:TOXPYTHON:python2.7}
{docs,spell}: {env:TOXPYTHON:python3.6}
{%- endif %}
{bootstrap,clean,check,report{%- if cookiecutter.codecov == 'yes' %},codecov{% endif %}{% if cookiecutter.coveralls == 'yes' %},coveralls{% if cookiecutter.c_extension_support != "no" %},extension-coveralls{% endif %}{% endif %}}: {env:TOXPYTHON:python3}
setenv =
Expand Down
1 change: 0 additions & 1 deletion {{cookiecutter.repo_name}}/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from __future__ import print_function

import io

{% if cookiecutter.c_extension_support != 'no' -%}
import os
{% endif -%}
Expand Down
4 changes: 2 additions & 2 deletions {{cookiecutter.repo_name}}/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ envlist =
basepython =
pypy: {env:TOXPYTHON:pypy}
pypy3: {env:TOXPYTHON:pypy3}
{% if cookiecutter.sphinx_docs == "yes" %}{py27,docs,spell}{% else %}py27{% endif %}: {env:TOXPYTHON:python2.7}
py27: {env:TOXPYTHON:python2.7}
py34: {env:TOXPYTHON:python3.4}
py35: {env:TOXPYTHON:python3.5}
py36: {env:TOXPYTHON:python3.6}
{% if cookiecutter.sphinx_docs == "yes" %}{py36,docs,spell}{% else %}py36{% endif %}: {env:TOXPYTHON:python3.6}
py37: {env:TOXPYTHON:python3.7}
{bootstrap,clean,check,report{%- if cookiecutter.codecov == 'yes' %},codecov{% endif %}{% if cookiecutter.coveralls == 'yes' %},coveralls{% if cookiecutter.c_extension_support != "no" %},extension-coveralls{% endif %}{% endif %}}: {env:TOXPYTHON:python3}
setenv =
Expand Down

0 comments on commit 33737e2

Please sign in to comment.