Commit f1e1300a authored by Vasilis Tsiligiannis's avatar Vasilis Tsiligiannis

tox: Rename 'robot' test environments, move linting under 'static' job

Signed-off-by: Vasilis Tsiligiannis's avatarVasilis Tsiligiannis <acinonyx@openwrt.gr>
parent 62a1f2ed
......@@ -3,27 +3,20 @@ stages:
- build
- test
- deploy
static_python:
static:
stage: static
image: python:2
before_script:
- pip install tox~=3.8.0
script:
- tox -e "py2-flake8,yapf,py2-pylint"
static_python3:
- tox -e py2-flake8,yapf,py2-pylint,robot-lint
static3:
stage: static
image: python:3
before_script:
- pip install tox~=3.8.0
script:
- tox -e "py3-{flake8,pylint}"
static_robot:
stage: static
image: python:2
before_script:
- pip install tox~=3.8.0
script:
- tox -e robot_lint
build:
stage: build
image: python:2
......@@ -57,7 +50,7 @@ test:
- pip install tox~=3.8.0
script:
- rm -rf robot/output
- tox -e py2
- tox -e py2-robot
artifacts:
expire_in: 1 week
when: always
......@@ -70,7 +63,7 @@ test3:
- pip install tox~=3.8.0
script:
- rm -rf robot/output
- tox -e py3
- tox -e py3-robot
artifacts:
expire_in: 1 week
when: always
......
[tox]
envlist = {py2,py3}-flake8,isort,yapf,{py2,py3}-{pylint,build},robot_lint,py2,py3
envlist = {py2,py3}-flake8,isort,yapf,{py2,py3}-{pylint,build},robot-lint,{py2,py3}-robot
[testenv:py2-flake8]
deps =
......@@ -57,20 +57,20 @@ skip_install = True
commands =
python setup.py sdist bdist_wheel
[testenv:robot_lint]
[testenv:robot-lint]
deps =
robotframework==3.1.1
changedir = {toxinidir}/robot
commands = {toxinidir}/contrib/robot_lint.sh
[testenv:py2]
[testenv:py2-robot]
deps =
robotframework
robotframework==3.1.1
changedir = {toxinidir}/robot
commands = python -m robot -d output testsuites
[testenv:py3]
[testenv:py3-robot]
deps =
robotframework
robotframework==3.1.1
changedir = {toxinidir}/robot
commands = python -m robot -d output testsuites
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment