summaryrefslogtreecommitdiff
path: root/tox.ini
blob: 8774b4a30eaaef6afc75263e4d896ab587d30e4d (plain)
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
54
55
56
57
[tox]
skipsdist=True
envlist = all_jobs, docs

[testenv]
setenv=
  PYTHONWARNING=all
passenv=HTTP_PROXY HTTPS_PROXY http_proxy https_proxy NO_PROXY no_proxy

[testenv:venv]
commands = {posargs}

# Please use `make docs` instead
[testenv:docs]
basepython=python3
whitelist_externals=
    rm
    cp
    tox
commands=
    tox -c {toxinidir}/src/bin/shipyard_airflow/tox.ini -e gen_all
    cp {toxinidir}/src/bin/shipyard_airflow/etc/shipyard/policy.yaml.sample {toxinidir}/doc/source/_static/shipyard.policy.yaml.sample
    cp {toxinidir}/src/bin/shipyard_airflow/etc/shipyard/shipyard.conf.sample {toxinidir}/doc/source/_static/shipyard.conf.sample
    rm -rf {toxinidir}/doc/build
    sphinx-build -W -b html {toxinidir}/doc/source {toxinidir}/doc/build/html
deps= -r{toxinidir}/doc/requirements.txt

# `all_jobs` is here to support invocation as simply `tox`, as is done in
# current pipeline.
[testenv:all_jobs]
whitelist_externals=
    tox
commands=
  tox -c {toxinidir}/src/bin/shipyard_airflow/tox.ini
  tox -c {toxinidir}/src/bin/shipyard_client/tox.ini

[testenv:py35]
whitelist_externals=
    tox
commands=
  tox -c {toxinidir}/src/bin/shipyard_airflow/tox.ini -e py35
  tox -c {toxinidir}/src/bin/shipyard_client/tox.ini -e py35

[testenv:py36]
whitelist_externals=
    tox
commands=
  tox -c {toxinidir}/src/bin/shipyard_airflow/tox.ini -e py36
  tox -c {toxinidir}/src/bin/shipyard_client/tox.ini -e py36

[testenv:pep8]
basepython=python3
whitelist_externals=
    tox
commands=
  tox -c {toxinidir}/src/bin/shipyard_airflow/tox.ini -e pep8
  tox -c {toxinidir}/src/bin/shipyard_client/tox.ini -e pep8