Skip to content

Commit

Permalink
Allow failure for style and spell on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed May 22, 2017
2 parents 8744a62 + 22a7cb9 commit 5b56ec5
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ matrix:
- env: 'TOX_ENV=py35-django18,codacy'
- env: 'TOX_ENV=py36-django18,codacy'
- env: 'TOX_ENV=pypy-django18,codacy'
- {python: '3.5', env: TOX_ENV=checkstyle}
- {python: '3.5', env: TOX_ENV=checkspell}
- {python: '3.5', env: TOX_ENV=checklink}
- {python: 3.7-dev}
addons:
Expand Down
21 changes: 18 additions & 3 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,25 @@ For merging, you should:
3. Add a note to ``CHANGELOG.rst`` about the changes.
4. Add yourself to ``AUTHORS.rst``.

.. [1] If you don't have all the necessary python versions available locally you can rely on Travis - it will
`run the tests <https://travis-ci.org/Pawamoy/django-zxcvbn-password/pull_requests>`_ for each change you add in the pull request.
.. [1] If you don't have all the necessary python versions available locally you can rely on...
It will be slower though ...
- **Travis**: it will `run the tests <https://travis-ci.org/Pawamoy/django-zxcvbn-password/pull_requests>`_ for each change you add in the pull request.
It will be slower though...
- **pyenv**:
.. code:: bash
# important libraries to compile Python
sudo apt install -y libssl-dev openssl zlib1g-dev sqlite3 libsqlite3-dev libbz2-dev bzip2
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
export PATH="${HOME}/.pyenv/bin:${PATH}"
eval "$(pyenv init -)"
pyenv install 3.5.3
pyenv install 3.6.0 # etc.
pyenv global system 3.5.3 3.6.0
Tips
----
Expand Down
1 change: 0 additions & 1 deletion runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
'ENGINE': 'django.db.backends.sqlite3',
}
},
ROOT_URLCONF='zxcvbn_password.urls',
INSTALLED_APPS=[
'django.contrib.auth',
'django.contrib.contenttypes',
Expand Down
14 changes: 14 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -37,40 +37,47 @@ usedevelop = false
whitelist_externals = tox

[testenv:test]
description = Run all the Python/Django test environments.
skip_install = true
commands =
tox -e py27-django18,py27-django19,py27-django110,py34-django18,py34-django19,py34-django110,py35-django18,py35-django19,py35-django110,py36-django18,py36-django19,py36-django110,py37-dev-django18,py37-dev-django19,py37-dev-django110,pypy-django18,pypy-django19,pypy-django110,
tox -e report

[testenv:detoxtest]
description = Run all the Python/Django test environments in parallel.
skip_install = true
deps = detox
commands =
detox -e py27-django18,py27-django19,py27-django110,py34-django18,py34-django19,py34-django110,py35-django18,py35-django19,py35-django110,py36-django18,py36-django19,py36-django110,py37-dev-django18,py37-dev-django19,py37-dev-django110,pypy-django18,pypy-django19,pypy-django110,
tox -e report

[testenv:detox]
description = Run all the environments in parallel.
skip_install = true
deps = detox
commands =
detox -e clean,checksetup,checksafety,checkstyle,checkspell,checklink,docs,py27-django18,py27-django19,py27-django110,py34-django18,py34-django19,py34-django110,py35-django18,py35-django19,py35-django110,py36-django18,py36-django19,py36-django110,py37-dev-django18,py37-dev-django19,py37-dev-django110,pypy-django18,pypy-django19,pypy-django110,
tox -e report

[testenv:docs]
description = Build the documentation locally.
skip_install = true
deps = -r{toxinidir}/docs/requirements.txt
commands = sphinx-build {posargs:-E} -b html docs dist/docs

[testenv:check]
description = Run all the check environments.
skip_install = true
commands = tox -e checksetup,checksafety,checkstyle,checkspell,checklink

[testenv:detoxcheck]
description = Run all the check environments in parallel.
skip_install = true
deps = detox
commands = detox -e checksetup,checksafety,checkstyle,checkspell,checklink

[testenv:checksetup]
description = Check that the package will be correctly installed and correctly rendered on PyPI.
skip_install = true
deps =
docutils
Expand All @@ -82,6 +89,7 @@ commands =
check-manifest {toxinidir}

[testenv:checksafety]
description = Check that the requirements versions do not have security vulnerabilities.
skip_install = true
deps =
bandit
Expand All @@ -91,6 +99,7 @@ commands =
bandit -r {toxinidir}/src/ -s B308

[testenv:checkstyle]
description = Check the code style.
skip_install = true
deps =
isort
Expand All @@ -103,6 +112,7 @@ commands =
pylama {toxinidir}

[testenv:checkspell]
description = Check the spelling in the documentation.
skip_install = true
setenv = SPELLCHECK=1
deps =
Expand All @@ -114,13 +124,15 @@ commands =
sphinx-build -b spelling -w /dev/null docs dist/docs

[testenv:checklink]
description = Check that the links written in documentation are valid.
skip_install = true
deps = -r{toxinidir}/docs/requirements.txt
commands =
- sphinx-build {posargs:-E} -Q -b html docs dist/docs
sphinx-build -b linkcheck -w /dev/null docs dist/docs

[testenv:report]
description = Create coverage report.
deps = coverage
skip_install = true
commands =
Expand All @@ -129,11 +141,13 @@ commands =
coverage html

[testenv:clean]
description = Delete coverage report.
commands = coverage erase
skip_install = true
deps = coverage

[testenv:codacy]
description = Upload coverage report to codacy.
deps =
codacy-coverage
coverage
Expand Down

0 comments on commit 5b56ec5

Please sign in to comment.