From 6600a54572bf0e7a85d57f7c6873a3b4529b3dae Mon Sep 17 00:00:00 2001
From: Marek Chrastina <marek.chrastina@vsb.cz>
Date: Thu, 30 May 2019 09:40:40 +0200
Subject: [PATCH] Add build ci

---
 .gitlab-ci.yml | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 78600c2..4223183 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,5 +1,6 @@
 stages:
   - test
+  - build
 
 mdcheck:
   stage: test
@@ -8,6 +9,7 @@ mdcheck:
     - mdl *.md
 
 pylint:
+  allow_failure: true
   stage: test
   image: it4innovations/docker-pycheck:latest
   script:
@@ -16,3 +18,17 @@ pylint:
     - if [ -f pip-upgradedependencies.egg-info/requires.txt ]; then pip install $(paste -d " " -s pip-upgradedependencies.egg-info/requires.txt); fi
     - pip install better-setuptools-git-version
     - pylint $(find . -type f -name "*.py")
+
+build:
+  stage: build
+  image: it4innovations/docker-pypi:latest
+  artifacts:
+    expire_in: 1 day
+    paths:
+      - dist/pipupgradedependencies*tar.gz
+  script:
+    - export PYTHONIOENCODING=UTF-8
+    - export LC_CTYPE=en_US.UTF-8
+    - pip install setuptools-git-version setuptools-markdown
+      #- python setup.py --version
+    - python setup.py sdist
-- 
GitLab