summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml19
1 files changed, 11 insertions, 8 deletions
diff --git a/.travis.yml b/.travis.yml
index 080ccdb..394e719 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,21 +4,24 @@ python: 3.7
cache: pip
env:
-- TEST_CMD="pytest"
+ - TEST_CMD="poetry run pytest"
install:
- - pip install pytest pytest-cov
- - if [[ $TRAVIS_PYTHON_VERSION == 3.7 ]] && [[ "$TEST_CMD" == pytest* ]]; then
- pip install pytest pytest-cov coveralls; fi
+ - |
+ if [[ "$TEST_CMD" == pytest* ]]; then
+ pip install poetry
+ poetry --no-interaction install
+ fi
+ - if [[ "$TEST_CMD" == pytest* ]] && [[ $TRAVIS_PYTHON_VERSION == 3.7 ]]; then
+ pip install coveralls; fi
- if [[ $TEST_CMD == black* ]]; then pip install black; fi
- if [[ $TEST_CMD == flake8* ]]; then pip install flake8 flake8-bugbear flake8-todo; fi
- - pip install -r requirements.txt
script:
-- $TEST_CMD
+ - $TEST_CMD
after_success:
- - if [[ $TRAVIS_PYTHON_VERSION == 3.7 ]] && [[ "$TEST_CMD" == pytest* ]];
+ - if [[ $TRAVIS_PYTHON_VERSION == 3.7 ]] && [[ "$TEST_CMD" == pytest* ]];
then coveralls; fi
matrix:
@@ -38,4 +41,4 @@ matrix:
- name: "pytest-py3.6"
python: 3.6
- name: "pytest-py3.7"
- python: 3.7 \ No newline at end of file
+ python: 3.7