summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Willhaus <mail@janwillhaus.de>2019-05-20 08:19:33 +0200
committerJan Willhaus <mail@janwillhaus.de>2019-11-02 23:40:50 +0100
commit87c6a57611470525d9b09fd2e37ca254994ed099 (patch)
tree801602b96eb7244507da69d6ddd7457a481f86c8
parenta4bc7c7854a95c899746d32866e5c82665b699b9 (diff)
downloadwarlock-add_tox_test_automation.tar.gz
-rw-r--r--.travis.yml10
-rw-r--r--tox.ini10
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:
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