forked from twosigma/marbles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
53 lines (47 loc) · 1.47 KB
/
tox.ini
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
[tox]
envlist = flake8, coverage, docs, py35, py36, py37
[travis]
python =
3.7: flake8, coverage, docs, py37
3.6: py36
3.5: py35
[testenv]
skip_install = True
deps = pipenv
list_dependencies_command=pipenv lock -r
commands=
pipenv install
pipenv run python marbles/core/setup.py test
pipenv run python marbles/mixins/setup.py test
[testenv:flake8]
basepython = python3.7
commands=
pipenv install --dev
pipenv run python -m flake8 --version
pipenv run python -m flake8
[testenv:coverage]
basepython = python3.7
commands=
pipenv install --dev
pipenv run python -m coverage erase
pipenv run python -m coverage run marbles/core/setup.py test
pipenv run python -m coverage combine --append marbles/core .
pipenv run python -m coverage run --append marbles/mixins/setup.py test
pipenv run python -m coverage report
pipenv run python -m coverage html
[testenv:docs]
basepython = python3.7
commands=
pipenv install --dev
pipenv run python setup.py build_sphinx -Ea
[testenv:pypi]
basepython = python3.7
whitelist_externals=
bash
commands=
pipenv install --dev
rm -rf dist marbles/core/dist marbles/mixins/dist
pipenv run bash -c "cd marbles/core; python setup.py sdist bdist_wheel"
pipenv run bash -c "cd marbles/mixins; python setup.py sdist bdist_wheel"
pipenv run python setup.py sdist bdist_wheel
twine upload --repository-url=https://upload.pypi.org/legacy/ dist/* marbles/core/dist/* marbles/mixins/dist/*