From bd706198d2e18a13741dbfd001f82c973cb695d4 Mon Sep 17 00:00:00 2001 From: Vasilis Tsiligiannis Date: Mon, 7 Jan 2019 19:49:12 +0200 Subject: [PATCH] gitlab-ci: Add build jobs for both Python 2 and 3 Signed-off-by: Vasilis Tsiligiannis --- .gitlab-ci.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 97425b9..f55d7cb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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