tox: Introduce 'build' environment
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>merge-requests/381/head
parent
be4e2fd1fc
commit
826f7bbe9f
|
@ -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
|
||||
|
|
7
tox.ini
7
tox.ini
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue