Use 'tox' to execute unit tests
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>environments/stage/deployments/290
parent
bf2c763c88
commit
fa43f4dcf9
|
@ -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
|
||||
|
|
9
tox.ini
9
tox.ini
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue