File: tox.ini

package info (click to toggle)
pydoctor 19.11.0%2Bgit20200303.47424e7-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,400 kB
  • sloc: python: 6,290; makefile: 11; sh: 8
file content (53 lines) | stat: -rw-r--r-- 1,645 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
;
; Coverage is always reported at the end of test run.
; There is a dedicated hidden environment for publishing the coverage report
; to the codecov.io service.
;
[tox]
envlist =
    test-{py27,py36,pypy},pyflakes,twisted-apidoc

[testenv:pyflakes]
basepython = /usr/bin/python


[testenv]
whitelist_externals =
    git
    rm
passenv = *


deps =
    test: coverage
    test: Twisted
    test: pytest
    test: docutils
    test: hypothesis

    codecov-travis: codecov

    pyflakes: pyflakes


commands =
    test: {envpython} --version
    test: trial --version
    test: coverage erase
    test: coverage run --source pydoctor --omit pydoctor/test/* --branch -m pytest {posargs:pydoctor}
    test: coverage report -m

    ; Hidden env for pusblishing coverage reports from Travis to codecov.io
    codecov-travis: coverage xml -o coverage.xml -i
    codecov-travis: codecov

    ; Custom pyflakes run to exlcude test files.
    pyflakes: /bin/sh -c "find pydoctor/ -name \*.py ! -path '*/testpackages/*' | xargs pyflakes"

    ; Run current version against twisted trunk
    twisted-apidoc: rm -rf {toxworkdir}/twisted-trunk
    twisted-apidoc: git clone --depth 1 --branch trunk https://github.com/twisted/twisted.git {toxworkdir}/twisted-trunk
    twisted-apidoc: /bin/sh -c "{toxworkdir}/twisted-trunk/bin/admin/build-apidocs {toxworkdir}/twisted-trunk/src {toxworkdir}/twisted-apidocs-build > {toxworkdir}/twisted-apidocs.log"
    twisted-apidoc: /bin/cat {toxworkdir}/twisted-apidocs.log
    ; Fail if the output of running pydoctor on Twisted is not emtpy.
    twisted-apidoc: /bin/sh -c "test ! -s {toxworkdir}/twisted-apidocs.log"