Skip to content

Commit

Permalink
Merge pull request #22 from s-weigand/tox-install-updated-dev-deps
Browse files Browse the repository at this point in the history
Force Tox to updated dev deps
  • Loading branch information
oz123 committed Feb 8, 2019
2 parents 5914024 + 32e82a0 commit 1d0dcd1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 32 deletions.
34 changes: 4 additions & 30 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,40 +21,14 @@ matrix:
env: TOXENV=env_var_coverage

- python: 3.6
#taken from https://quick-sphinx-tutorial.readthedocs.io/en/latest/advanced.html
branches:
only:
- master
env: test-doc-creation
sudo: false
install:
- python -m pip install -U -r requirements_dev.txt
- python setup.py install
script:
- cd docs; make html
# Flags used here, not in `make html`:
# -n Run in nit-picky mode. Currently, this generates warnings for all missing references.
# -W Turn warnings into errors. This means that the build stops at the first warning and sphinx-build exits with exit status 1.
env: TOXENV=docs
after_success:
- echo "done"

- python: 3.6
#taken from https://quick-sphinx-tutorial.readthedocs.io/en/latest/advanced.html
branches:
only:
- master
env: test-doc-links
sudo: false
install:
- python -m pip install -U -r requirements_dev.txt
- python setup.py install
script:
- cd docs; make linkcheck
# Flags used here, not in `make html`:
# -n Run in nit-picky mode. Currently, this generates warnings for all missing references.
# -W Turn warnings into errors. This means that the build stops at the first warning and sphinx-build exits with exit status 1.
env: TOXENV=docs-links
after_success:
- echo "done"
- echo "done"

- language: python
sudo: required
Expand Down Expand Up @@ -159,7 +133,7 @@ matrix:

allow_failures:
# this test is allowed to fail since it uses external resources
- env: test-doc-links
- env: TOXENV=docs-links

install:
- python -m pip install -U pip>=8.1.2
Expand Down
16 changes: 14 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{27,34,35,36,37}, env_var_coverage, flake8
envlist = py{27,34,35,36,37}, env_var_coverage, flake8, docs, docs-links


[travis]
Expand All @@ -12,19 +12,30 @@ os =
max-line-length = 99


[testenv:docs]
whitelist_externals = make
commands =
make --directory=docs clean_all html

[testenv:docs-links]
whitelist_externals = make
commands =
make --directory=docs clean_all linkcheck


[testenv:flake8]
basepython=python
deps=flake8
commands=flake8 pytest_localftpserver tests


[testenv:env_var_coverage]
passenv = *
setenv =
FTP_USER = benz
FTP_PASS = erni1
FTP_HOME = {envtmpdir}
FTP_PORT = 31175
commands_pre = {envpython} -m pip install -U -q -r {toxinidir}/requirements_dev.txt
commands =
coverage run --append -m py.test --basetemp={envtmpdir} tests/test_pytest_localftpserver_with_env_var.py
coverage report --show-missing
Expand All @@ -33,6 +44,7 @@ commands =
[testenv]
passenv = *
deps = -r{toxinidir}/requirements_dev.txt
commands_pre = {envpython} -m pip install -U -q -r {toxinidir}/requirements_dev.txt
commands =
coverage run --append -m py.test --basetemp={envtmpdir} tests/test_pytest_localftpserver.py tests/test_helper_functions.py
coverage report --show-missing

0 comments on commit 1d0dcd1

Please sign in to comment.