use stages for travis builds
@@ -3,20 +3,20 @@ python:
- "3.6"
- "3.7"
- "3.8"
-env:
- matrix:
- - TOXENV=py3
- - TOXENV=lint
- # - TOXENV=integration # requires a remote lxd setup
-
-install:
- - travis_retry pip install tox
- - pip install codecov
+stages:
+ - lint
+ - test
+install: pip install tox codecov
+jobs:
+ fast_finish: true
+ include:
+ - stage: lint
+ script: tox -e lint
+ python: "3.6"
script:
- - tox
+ - tox -e py
- test -d .tox/$TOXENV/log && cat .tox/$TOXENV/log/*.log || true
cache:
directories:
- $HOME/.cache/pip
-after_success:
- - codecov
+after_success: codecov
