Skip to content

Commit

Permalink
Merge pull request #469 from mattbennett/travis-build-stages
Browse files Browse the repository at this point in the history
Travis build stages
  • Loading branch information
mattbennett committed Oct 6, 2017
2 parents 101e71e + 1205858 commit 57370e1
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 31 deletions.
78 changes: 52 additions & 26 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,46 +28,72 @@ cache:

matrix:
include:
- python: 2.7
- stage: static
python: 2.7
env: TOX_ENV=py27-static
- stage: static
python: 3.6
env: TOX_ENV=py36-static
- stage: docs
python: 2.7
env: TOX_ENV=docs
- stage: examples
python: 2.7
env: TOX_ENV=py27-examples
- stage: examples
python: 3.6
env: TOX_ENV=py36-examples
- stage: test
python: 2.7
env: TOX_ENV=py27-oldest-lib
- python: 2.7
- stage: test
python: 2.7
env: TOX_ENV=py27-pinned-lib
- python: 2.7
- stage: test
python: 2.7
env: TOX_ENV=py27-latest-lib
- python: 2.7
env: TOX_ENV=py27-mastereventlet-lib
- python: 2.7
env: TOX_ENV=py27-examples
- python: 3.4
- stage: test
python: 3.4
env: TOX_ENV=py34-oldest-lib
- python: 3.4
- stage: test
python: 3.4
env: TOX_ENV=py34-pinned-lib
- python: 3.4
- stage: test
python: 3.4
env: TOX_ENV=py34-latest-lib
- python: 3.4
env: TOX_ENV=py34-mastereventlet-lib
- python: 3.5
- stage: test
python: 3.5
env: TOX_ENV=py35-oldest-lib
- python: 3.5
- stage: test
python: 3.5
env: TOX_ENV=py35-pinned-lib
- python: 3.5
- stage: test
python: 3.5
env: TOX_ENV=py35-latest-lib
- python: 3.5
env: TOX_ENV=py35-mastereventlet-lib
- python: 3.6
- stage: test
python: 3.6
env: TOX_ENV=py36-oldest-lib
- python: 3.6
- stage: test
python: 3.6
env: TOX_ENV=py36-pinned-lib
- python: 3.6
- stage: test
python: 3.6
env: TOX_ENV=py36-latest-lib
- python: 3.6
- stage: mastereventlet
python: 2.7
env: TOX_ENV=py27-mastereventlet-lib
- stage: mastereventlet
python: 3.4
env: TOX_ENV=py34-mastereventlet-lib
- stage: mastereventlet
python: 3.5
env: TOX_ENV=py35-mastereventlet-lib
- stage: mastereventlet
python: 3.6
env: TOX_ENV=py36-mastereventlet-lib
- python: 3.6
- stage: branchcoverage
python: 3.6
env: TOX_ENV=py36-branchcoverage-lib
- python: 3.6
env: TOX_ENV=py36-examples
- python: 3.6
env: TOX_ENV=docs
fast_finish: true
allow_failures:
- env: TOX_ENV=py27-mastereventlet-lib
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ ifneq ($(AUTO_FIX_IMPORTS), 1)
autofix = --check-only
endif

test: flake8 pylint test_lib test_examples
static: imports flake8 pylint
test: static test_lib test_examples

flake8:
flake8 nameko test
Expand Down
10 changes: 6 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = {py27,py34,py35,py36}-{oldest,pinned,latest,mastereventlet}-lib, py36-branchcoverage-lib, {py27,py36}-examples, docs
envlist = {py27,py34,py35,py36}-{oldest,pinned,latest,mastereventlet}-lib, py36-branchcoverage-lib, {py27,py36}-examples, docs, {py27,py36}-static
skipsdist = True

[testenv]
Expand Down Expand Up @@ -38,10 +38,12 @@ whitelist_externals = make
commands =
mastereventlet: pip install --upgrade https://github.com/eventlet/eventlet/archive/master.zip

static: pip install --editable .[dev]
static: make imports
static: make flake8
static: make pylint

lib: pip install --editable .[dev]
lib: make imports
lib: make flake8
lib: make pylint
lib: make test_lib

examples: pip install --editable .[dev,examples]
Expand Down

0 comments on commit 57370e1

Please sign in to comment.