summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorEric Lin <anselor@gmail.com>2020-07-07 13:59:43 -0400
committeranselor <anselor@gmail.com>2020-07-08 14:51:31 -0400
commitff64eff8854c9b52a1f48e4b843e9a738d2b388d (patch)
tree734419988bbb26a31ecc1caa9e18b0a6686cc6f3 /.travis.yml
parentbc50e370c6113ada43acbfaf94d211f3917a7870 (diff)
downloadcmd2-git-ff64eff8854c9b52a1f48e4b843e9a738d2b388d.tar.gz
Swap out tox for nox
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml18
1 files changed, 9 insertions, 9 deletions
diff --git a/.travis.yml b/.travis.yml
index 5f83a058..521c383c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,25 +4,25 @@ matrix:
include:
- os: linux
python: 3.5
- env: TOXENV=py35
+ env: NOXSESSION=tests-3.5
- os: linux
python: 3.6
- env: TOXENV=py36
+ env: NOXSESSION=tests-3.6
- os: linux
python: 3.7
dist: xenial
- env: TOXENV=py37
+ env: NOXSESSION=tests-3.7
- os: linux
python: 3.8
dist: xenial
- env: TOXENV=py38
+ env: NOXSESSION=tests-3.8
- os: linux
python: 3.9-dev
dist: xenial
- env: TOXENV=py39
+ env: NOXSESSION=tests-3.9
- os: linux
python: 3.7
- env: TOXENV=docs
+ env: NOXSESSION=docs
# # Warning: Don't try to use code coverage analysis with pypy as it is insanely slow
# - os: linux
# python: pypy3
@@ -35,7 +35,7 @@ matrix:
# - BREW_INSTALL=python3
install:
- - pip install flake8 tox
+ - pip install flake8 nox
# - |
# if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
# if [[ -n "$BREW_INSTALL" ]]; then
@@ -47,9 +47,9 @@ install:
before_script:
# stop the build if there are Python syntax errors or undefined names
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
- if [[ $TOXENV == py38 ]]; then
+ if [[ $NOXSESSION == tests-3.8 ]]; then
flake8 . --count --ignore=E252,W503 --max-complexity=26 --max-line-length=127 --show-source --statistics ;
fi
script:
- - tox
+ - echo "$NOXSESSION"; nox --non-interactive --session "$NOXSESSION"