gitlab-ci: Add build stage
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>merge-requests/316/head
parent
6cc933806d
commit
0b27cfb3a7
|
@ -1,5 +1,6 @@
|
|||
stages:
|
||||
- static
|
||||
- build
|
||||
- test
|
||||
- deploy
|
||||
- trigger
|
||||
|
@ -17,6 +18,28 @@ static_python:
|
|||
- pip install --no-cache-dir --no-deps -r requirements-dev.txt
|
||||
- cp env-dist .env
|
||||
- flake8 .
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue