1
0
Fork 0

Use 'tox' to execute unit tests

Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
environments/stage/deployments/290
Vasilis Tsiligiannis 2019-01-23 21:41:53 +02:00
parent bf2c763c88
commit fa43f4dcf9
2 changed files with 15 additions and 4 deletions

View File

@ -41,13 +41,15 @@ build3:
when: always
paths:
- dist
test:
stage: test
image: python:2.7
before_script:
- pip install tox
- apt-get update
- apt-get install -y ruby-sass
script:
- pip install --no-cache-dir -r requirements/dev.txt
- cp env-dist .env
- pytest
- tox -e deps,pytest
stage:
stage: deploy

View File

@ -1,6 +1,7 @@
[tox]
envlist =
flake8
pytest
py27
py36
@ -12,3 +13,11 @@ commands = flake8 \
setup.py \
network \
auth0login
[testenv:pytest]
install_command = python -m pip install --no-deps {opts} {packages}
deps =
-rrequirements-dev.txt
usedevelop = True
extras = dev
commands = pytest