Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
ref: Simplify travis setup
Browse files Browse the repository at this point in the history
  • Loading branch information
untitaker committed Sep 25, 2018
1 parent ea000f5 commit 3f34527
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 137 deletions.
140 changes: 23 additions & 117 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,26 @@
language: python
python:
- "2.7"
- "pypy"
- "3.4"
- "3.5"
- "3.6"

matrix:
include:
- python: "3.7"
dist: xenial
sudo: true
- python: "3.8-dev"
dist: xenial
sudo: true

- name: Linting
python: "3.7"
install:
- pip install tox
script: tox -e linters

sudo: false
addons:
apt:
Expand All @@ -17,123 +39,7 @@ jobs:
# - python: 3.5
# env: TOXENV=py35-django-dev-fix

include:
- stage: core
python: 2.7
env: TOXENV=py27
- stage: core
python: 3.4
env: TOXENV=py34
- stage: core
python: 3.5
env: TOXENV=py35
- stage: core
python: 3.6
env: TOXENV=py36
- stage: core
python: pypy
env: TOXENV=pypy
- stage: core
python: 3.5
env: TOXENV=flake8


- stage: contrib
python: 2.7
env: TOXENV=py27-django-16
- stage: contrib
python: 2.7
env: TOXENV=py27-django-17
- stage: contrib
python: 2.7
env: TOXENV=py27-django-18
- stage: contrib
python: 2.7
env: TOXENV=py27-django-19
- stage: contrib
python: 2.7
env: TOXENV=py27-django-110

- stage: contrib
python: 3.4
env: TOXENV=py34-django-17
- stage: contrib
python: 3.4
env: TOXENV=py34-django-18
- stage: contrib
python: 3.4
env: TOXENV=py34-django-19
- stage: contrib
python: 3.4
env: TOXENV=py34-django-110

- stage: contrib
python: 3.5
env: TOXENV=py35-django-18
- stage: contrib
python: 3.5
env: TOXENV=py35-django-19
- stage: contrib
python: 3.5
env: TOXENV=py35-django-110
- stage: contrib
python: 3.5
env: TOXENV=py35-django-111
- stage: contrib
python: 3.5
env: TOXENV=py35-django-200
# - stage: contrib
# python: 3.5
# env: TOXENV=py35-django-dev-fix

- stage: contrib
python: 2.7
env: TOXENV=py27-flask-10
- stage: contrib
python: 2.7
env: TOXENV=py27-flask-11
- stage: contrib
python: 3.5
env: TOXENV=py35-flask-10
- stage: contrib
python: 3.5
env: TOXENV=py35-flask-11
- stage: contrib
python: 3.5
env: TOXENV=py35-flask-12

- stage: contrib
python: 2.7
env: TOXENV=py27-celery-3
- stage: contrib
python: 2.7
env: TOXENV=py27-celery-4

- stage: contrib
python: 2.7
env: TOXENV=py27-lambda

- stage: contrib
python: 3.6
env: TOXENV=py36-lambda

- stage: contrib
python: 3.5
env: TOXENV=py35-sanic-07

- stage: contrib
python: 3.6
env: TOXENV=py36-sanic-07

#- stage: deploy
# script: ./setup.py sdist --formats=gztar bdist_wheel
#if: branch = master
#python: 2.7
#after_success:
# - npm install -g @zeus-ci/cli
# - zeus upload -t "application/zip+wheel" dist/*

script: tox
script: sh ci/runtox.sh
install:
- make
- pip install codecov
Expand Down
8 changes: 8 additions & 0 deletions ci/runtox.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh
if [ -z "$1" ]; then
searchstring="$(echo py$TRAVIS_PYTHON_VERSION | tr -d . | sed -e 's/pypypy/pypy/g' -e 's/-dev//g')"
else
searchstring="$1"
fi

exec tox -e $(tox -l | grep $searchstring | tr '\n' ',')
40 changes: 20 additions & 20 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,23 @@
[tox]
envlist =
# core
py{27,34,35,36}
py{27,34,35,36,37}
pypy
flake8
# contrib
{py35,py36}-django-dev
{py35,py36}-django-{200}
{py35,py36,py37}-django-dev
{py35,py36,py37}-django-{200}
{py27,py35}-django-111
{py27,py34,py35}-django-{18,19,110}
{py27,py34,py35}-django-18
{py27,py34,py35,py36}-django-{18,19,110}
{py27,py34,py35,py36}-django-18
{py27,py34}-django-17
py27-django-16
{py27,py35}-flask-{10,11}
py35-flask-12
py35-flask-dev
{py27,py35,py36,py37}-flask-{10,11}
py37-flask-12
py37-flask-dev
py27-celery-{3,4}
py{27,36}-lambda
py{35,36}-sanic-07

py{27,37}-lambda
py{35,36,37}-sanic-07

[testenv]
deps =
Expand Down Expand Up @@ -66,6 +65,7 @@ basepython =
py34: python3.4
py35: python3.5
py36: python3.6
py37: python3.7
pypy: pypy

commands =
Expand All @@ -80,7 +80,7 @@ commands:


[testenv:flake8]
basepython = python3.5
basepython = python3.7
skip_install = true
deps =
flake8
Expand All @@ -90,7 +90,7 @@ commands =
flake8 raven/ setup.py

[testenv:pylint]
basepython = python3.5
basepython = python3.7
skip_install = true
deps =
pyflakes
Expand All @@ -100,15 +100,15 @@ commands =


[testenv:bandit]
basepython = python3.5
basepython = python3.7
skip_install = true
deps =
bandit
commands =
bandit -r raven/ -c .bandit.yml

[testenv:linters]
basepython = python3.5
basepython = python3.7
skip_install = true
deps =
{[testenv:flake8]deps}
Expand All @@ -122,15 +122,15 @@ commands =
{[testenv:bandit]commands}

[testenv:readme]
basepython = python3.5
basepython = python3.7
deps =
readme_renderer
commands =
python setup.py check -r -s

# Release tooling
[testenv:build]
basepython = python3.5
basepython = python3.7
skip_install = true
deps =
wheel
Expand All @@ -139,23 +139,23 @@ commands =
python setup.py -q sdist bdist_wheel

[testenv:release]
basepython = python3.5
basepython = python3.7
skip_install = true
deps =
bumpversion
commands =
bumpversion --tag --commit {posargs} release

[testenv:minor]
basepython = python3.5
basepython = python3.7
skip_install = true
deps =
bumpversion
commands =
bumpversion --commit {posargs} minor

[testenv:dev]
basepython = python3.5
basepython = python3.7
skip_install = true
deps =
bumpversion
Expand Down

0 comments on commit 3f34527

Please sign in to comment.