From 87c6a57611470525d9b09fd2e37ca254994ed099 Mon Sep 17 00:00:00 2001 From: Jan Willhaus Date: Mon, 20 May 2019 08:19:33 +0200 Subject: Add tox config --- .travis.yml | 10 ++++------ tox.ini | 10 ++++++++++ 2 files changed, 14 insertions(+), 6 deletions(-) create mode 100644 tox.ini diff --git a/.travis.yml b/.travis.yml index 68ef451..836f6e5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,19 +3,17 @@ python: 3.6 cache: pip: true directories: - - "$HOME/.cache/pypoetry" + - "$TRAVIS_BUILD_DIR/.tox" stages: - linting - test install: - - curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python - -y --preview - - source $HOME/.poetry/env - - poetry install --verbose --no-interaction + - pip install tox-travis poetry==1.0.0b3 script: - - pytest + - tox jobs: include: @@ -38,7 +36,7 @@ jobs: script: - pre-commit run --all-files --verbose env: - - PRE_COMMIT_HOME="$HOME/.cache/pre-commit" + - PRE_COMMIT_HOME="$TRAVIS_HOME/.cache/pre-commit" cache: pip: true directories: diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..04a22c6 --- /dev/null +++ b/tox.ini @@ -0,0 +1,10 @@ +[tox] +skipsdist = True +envlist = py27,py35,py36,py37,py38 + +[testenv] +whitelist_externals = poetry +skip_install = true +commands = + poetry install -v + poetry run pytest -- cgit v1.2.1