Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix TravisCI
  • Loading branch information
ahal committed Mar 21, 2019
1 parent bdb75f1 commit e02e031
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 18 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Expand Up @@ -2,7 +2,7 @@ language: python
python:
- "3.6"
install:
- python setup.py -q install
- pip install tox
- pip install poetry
- poetry install
script:
- tox
- poetry run tox
66 changes: 65 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions pyproject.toml
Expand Up @@ -18,6 +18,7 @@ include = [
license = "MPL-2.0"
authors = [
"Andrew Halberstadt <ahalberstadt@mozilla.com>",
"Trang Nguyen <huyentrang1511@gmail.com>",
]

readme = "README.md"
Expand Down Expand Up @@ -45,5 +46,7 @@ pygments = "^2.3.1"
orderedset = "^2.0.1"

[tool.poetry.dev-dependencies]
flake8 = "^3.7.7"
flake8-import-order = "^0.18.1"
pytest = "^3.0.0"
tox = "^3.7.0"
31 changes: 17 additions & 14 deletions tox.ini
@@ -1,33 +1,36 @@
[tox]
skipsdist=True
envlist=py36,flake8,doclint

[testenv]
deps=
pytest >= 3.0.0, <4
docutils
orderedset
whitelist_externals=
pytest
passenv=TRAVIS_EVENT_TYPE
commands=pytest -vv -rfx --tb=short {posargs}

[testenv:integration]
deps=
pytest >= 3.0.0, <4
docutils
orderedset
whitelist_externals=
pytest
setenv=
TRAVIS_EVENT_TYPE=cron
commands=pytest -vv -rfx --tb=short test/test_recipes_integration.py

[testenv:flake8]
deps =
whitelist_externals=
flake8
flake8-import-order
commands =
flake8 adr app test
commands=flake8 adr app test

[testenv:doclint]
commands =
python doclint
# TODO figure out why doclint doesn't pick these up from the virtualenv
deps=
docutils
json-e
orderedset
pyyaml
requests
terminaltables
passenv=PYTHONPATH
commands=./doclint

[flake8]
max-line-length = 100
Expand Down

0 comments on commit e02e031

Please sign in to comment.