From 7cdf5c4d2076086c0730c14196bee9866e477f1d Mon Sep 17 00:00:00 2001
From: vermeul <swen@ethz.ch>
Date: Wed, 25 Sep 2019 10:32:55 +0200
Subject: [PATCH] upload to pypi

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 28a5ae0..a386d19 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,6 +3,7 @@ image: python:3.7-stretch
 stages:
     - style
     - tests
+    - pypi_test
 
 before_script:
     - pip install -U pip setuptools
@@ -12,9 +13,16 @@ tests:
     script:
         - tox -r -vv -e py37
     stage: tests
+    allow_failure: true
 
 style:
     script:
         - tox -r -vv -e flake8
     allow_failure: true
     stage: style
+
+pypi_test:
+    script:
+        - python setup.py sdist
+        - twine upload -u openbis-team -p 4z2-3oZ-rFK-YNh --repository-url https://test.pypi.org/legacy/ dist/*
+    when: manual
-- 
GitLab