1
0
Fork 0

gitlab-ci: Add build jobs for both Python 2 and 3

Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
environments/stage/deployments/284
Vasilis Tsiligiannis 2019-01-07 19:49:12 +02:00
parent 2295864a8a
commit bd706198d2
1 changed files with 23 additions and 0 deletions

View File

@ -2,6 +2,7 @@ image: registry.gitlab.com/librespacefoundation/satnogs/satnogs-network:latest
stages:
- static
- build
- test
- deploy
static_js_css:
@ -18,6 +19,28 @@ static_python:
- pip install tox
script:
- tox -e 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