Skip to content

Commit

Permalink
ci: Update travis-ci to use poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
riddell-stan committed Apr 22, 2020
1 parent d53acca commit 7fb8c8c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
28 changes: 18 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
dist: xenial
dist: bionic
language: python
python:
- "3.7"
env:
- TOXENV=flake8
- TOXENV=format
- TOXENV=mypy
- TOXENV=py37
python: 3.7
matrix:
include:
- python: 3.7
- python: 3.8
- env: TOXENV=flake8
- env: TOXENV=format
- env: TOXENV=mypy
- env: TOXENV=docs
cache: pip
before_install:
- python --version
install:
- pip install tox
- pip install "poetry<2,>=1.0" tox
script:
- travis_wait 60 tox
- |
if [[ -n $TOXENV ]]; then
tox
else
poetry install -v && poetry run pytest -s -v tests
fi
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ deps =
commands = python3 -m sphinx -T -W doc/source build/html

[testenv:mypy]
deps =
mypy==0.770
commands = mypy --strict-optional --ignore-missing-imports --follow-imports=skip {posargs} .

[flake8]
Expand Down

0 comments on commit 7fb8c8c

Please sign in to comment.