1
0
Fork 0

tox: Fix environment to not bind in specific Python version

Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
merge-requests/764/head
Vasilis Tsiligiannis 2019-09-23 13:53:44 +03:00
parent e954f8802c
commit 17897fa504
2 changed files with 15 additions and 10 deletions

View File

@ -25,7 +25,7 @@ static_python:
before_script:
- pip install "$GITLAB_CI_PYPI_TOX"
script:
- tox -e flake8
- tox -e py2-flake8
docs:
stage: build
image: ${GITLAB_CI_IMAGE_PYTHON3}
@ -69,7 +69,7 @@ test:
- apt-get update
- apt-get install -y ruby-sass
script:
- tox -e deps,pytest
- tox -e deps,py2-pytest
docker:
stage: deploy
image: ${GITLAB_CI_IMAGE_DOCKER}

21
tox.ini
View File

@ -1,16 +1,11 @@
[tox]
envlist =
flake8
pytest
docs
py27
py36
envlist = py2-flake8,{py2,py3}-build,py2-pytest,docs
[depversions]
flake8 = 3.7.7
sphinx_rtd_theme = 0.4.3
[testenv:flake8]
[testenv:py2-flake8]
deps =
flake8=={[depversions]flake8}
skip_install = True
@ -19,6 +14,16 @@ commands = flake8 \
network \
auth0login
[testenv:py2-build]
skip_install = True
commands =
python setup.py sdist bdist_wheel
[testenv:py3-build]
skip_install = True
commands =
python setup.py sdist bdist_wheel
[testenv:docs]
deps =
sphinx_rtd_theme=={[depversions]sphinx_rtd_theme}
@ -34,7 +39,7 @@ deps =
extras = dev
commands = pip check
[testenv:pytest]
[testenv:py2-pytest]
install_command = python -m pip install --no-deps {opts} {packages}
deps =
-rrequirements-dev.txt