diff options
author | Jan Willhaus <mail@janwillhaus.de> | 2019-05-20 08:19:33 +0200 |
---|---|---|
committer | Jan Willhaus <mail@janwillhaus.de> | 2019-11-02 23:40:50 +0100 |
commit | 87c6a57611470525d9b09fd2e37ca254994ed099 (patch) | |
tree | 801602b96eb7244507da69d6ddd7457a481f86c8 | |
parent | a4bc7c7854a95c899746d32866e5c82665b699b9 (diff) | |
download | warlock-add_tox_test_automation.tar.gz |
Add tox configadd_tox_test_automation
-rw-r--r-- | .travis.yml | 10 | ||||
-rw-r--r-- | tox.ini | 10 |
2 files changed, 14 insertions, 6 deletions
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: @@ -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 |