Skip to content

Commit

Permalink
Fix Travis CI issues
Browse files Browse the repository at this point in the history
- use pip >= 19.2 (fix safety issues)
- use only 3.9-dev (3.9 is currently not available in Travis)
- run pytest from project root (coveralls.io is unable to
  access sources)
  • Loading branch information
i386x committed Oct 18, 2020
1 parent 41a78a5 commit 4473140
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ python:
- 3.6
- 3.7
- 3.8
- 3.9
- 3.9-dev

install:
Expand Down
14 changes: 3 additions & 11 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,26 @@ skipsdist = True
[testenv]
passenv = *
setenv =
PYTHONPATH=.
PYTHONPATH=src
skip_install = True
description =
{envname}: Run unit tests for {envname}
deps =
pip >= 19.2
safety
tox
unittest2
pytest
pytest-cov
coveralls
changedir = src
commands =
safety check --full-report
pytest --cov=tox_lsr --cov-report=term-missing ../tests
pytest --cov=tox_lsr --cov-report=term-missing tests
{env:COVERALLS_CMD:coveralls --output={envname}-coverage.txt}

[linters]
envdir = {toxworkdir}/env-{env:TRAVIS_PYTHON_VERSION:linters}
basepython = python3.6
changedir = {toxinidir}

[testenv:black]
envdir = {[linters]envdir}
Expand All @@ -39,7 +38,6 @@ description =
{envname}: Run formatting checks
deps =
black
changedir = {[linters]changedir}
commands =
black --check --diff .

Expand All @@ -50,7 +48,6 @@ description =
{envname}: Run import order checks
deps =
isort
changedir = {[linters]changedir}
commands =
isort --diff -c .

Expand All @@ -65,7 +62,6 @@ deps =
tox
unittest2
pylint
changedir = {[linters]changedir}
commands =
pylint setup.py src/tox_lsr
pylint -d C0115,C0116,C0321,E0611,R0903,W0613 \
Expand All @@ -81,7 +77,6 @@ deps =
flake8
flake8-logging-format
hacking
changedir = {[linters]changedir}
commands =
flake8

Expand All @@ -93,7 +88,6 @@ description =
deps =
tox
mypy
changedir = {[linters]changedir}
commands =
mypy src/tox_lsr

Expand All @@ -104,7 +98,6 @@ description =
{envname}: Run security analyzer
deps =
bandit
changedir = {[linters]changedir}
commands =
bandit -vlir setup.py src/tox_lsr stubs tests/unit

Expand All @@ -115,7 +108,6 @@ description =
{envname}: Run doc strings checks
deps =
pydocstyle
changedir = {[linters]changedir}
commands =
pydocstyle setup.py src/tox_lsr
pydocstyle --add-ignore=D101,D102,D103,D107 stubs tests/unit
Expand Down

0 comments on commit 4473140

Please sign in to comment.