1
0
Fork 0

tox: Introduce 'build' environment

Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
merge-requests/381/head
Vasilis Tsiligiannis 2019-05-09 18:10:34 +03:00
parent be4e2fd1fc
commit 826f7bbe9f
2 changed files with 12 additions and 3 deletions

View File

@ -45,9 +45,11 @@ docs:
build:
stage: build
image: python:2
before_script:
- pip install tox~=3.8.0
script:
- rm -rf dist
- python setup.py sdist bdist_wheel
- tox -e py2-build
artifacts:
expire_in: 1 week
when: always
@ -56,9 +58,11 @@ build:
build3:
stage: build
image: python:3
before_script:
- pip install tox~=3.8.0
script:
- rm -rf dist
- python setup.py sdist bdist_wheel
- tox -e py3-build
artifacts:
expire_in: 1 week
when: always

View File

@ -1,5 +1,5 @@
[tox]
envlist = {py2,py3}-{flake8,isort,yapf},pytest,py2,py3
envlist = {py2,py3}-{flake8,isort,yapf,build},pytest,py2,py3
[testenv:flake8]
deps =
@ -31,6 +31,11 @@ deps =
skip_install = True
commands = yapf -d -r .
[testenv:build]
skip_install = True
commands =
python setup.py sdist bdist_wheel
[testenv:deps]
install_command = python -m pip install --no-deps {opts} {packages}
recreate = True