1
0
Fork 0

gitlab-ci: Add build stage

Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
merge-requests/316/head
Vasilis Tsiligiannis 2019-01-03 01:14:56 +02:00
parent 6cc933806d
commit 0b27cfb3a7
1 changed files with 23 additions and 0 deletions

View File

@ -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