1
0
Fork 0
mirror of https://github.com/deltachat/deltachat-core.git synced 2025-10-05 19:42:04 +02:00
deltachat-core/python/tox.ini
holger krekel 515e5ebba7
replace travis with circle-ci, cleanup of build steps (#639)
Travis is getting slower and was already hard to debug. This commit: 

- moves from travis to Circle-CI
- has a ci-scripts/README.md which explains what is contained there
- puts all build and CI scripts into "ci_scripts" directory
- allows to run full ci runs locally
- trims down the base Docker image where tests/docs/wheels are run from 4.4GB to 1.7GB
- fixes #628

Using circle-ci also means that we can probably integrate Mac-OS build steps more easily.

I am sure that my initial circle-ci config (helped by kind hints from @dignifiedquire ) can be improved.
2019-04-01 09:45:56 +02:00

56 lines
938 B
INI

[tox]
# make sure to update environment list in travis.yml and appveyor.yml
envlist =
py27
py35
lint
auditwheels
[testenv]
commands =
pytest -rsXx {posargs:tests}
pip wheel . -w {toxworkdir}/wheelhouse
passenv = TRAVIS
deps =
pytest
pytest-faulthandler
pdbpp
[testenv:auditwheels]
skipsdist = True
commands =
python tests/auditwheels.py {toxworkdir}/wheelhouse
[testenv:lint]
skipsdist = True
usedevelop = True
basepython = python2.7
deps =
flake8
# pygments required by rst-lint
pygments
restructuredtext_lint
commands =
flake8 src/deltachat
flake8 tests/
rst-lint --encoding 'utf-8' README.rst
[testenv:doc]
deps =
sphinx==1.8.5
breathe
changedir = doc
commands =
sphinx-build -w docker-toxdoc-warnings.log -b html . _build/html
[pytest]
python_files = tests/test_*.py
norecursedirs = .tox
xfail_strict=true
[flake8]
max-line-length = 120