Commit 886bf4bb authored by Vasilis Tsiligiannis's avatar Vasilis Tsiligiannis

gitlab-ci: Split static, build and test jobs into separate stages

Signed-off-by: Vasilis Tsiligiannis's avatarVasilis Tsiligiannis <acinonyx@openwrt.gr>
parent 6e14e0fb
Pipeline #47747856 passed with stages
in 4 minutes and 22 seconds
stages:
- static
- build
- test
- deploy
Python 2.7:
stage: test
static_python:
stage: static
image: python:2.7
before_script:
- pip install tox
script:
- tox -e flake8,yapf,pylint
static_robot:
stage: static
image: python:2.7
before_script:
- pip install tox
- tox -e flake8,yapf,pylint,robot_lint,py27
Python 3.6:
stage: test
script:
- tox -e robot_lint
build:
stage: build
image: python:2.7
script:
- rm -rf dist
- python setup.py sdist bdist_wheel
artifacts:
expire_in: 1 week
when: always
paths:
- dist
build3:
stage: build
image: python:3.6
script:
- rm -rf dist
- python setup.py sdist bdist_wheel
artifacts:
expire_in: 1 week
when: always
paths:
- dist
test:
stage: test
image: python:2.7
before_script:
- pip install tox
script:
- tox -e py27
test3:
stage: test
image: python:3.6
before_script:
- pip install tox
script:
- tox -e py36
deploy:
stage: deploy
......
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