From fdc4a6aabfbf388af9a0cd7a25b123a77b402dde Mon Sep 17 00:00:00 2001
From: Mateusz Klimaszewski <mk.klimaszewski@gmail.com>
Date: Fri, 8 Jan 2021 11:56:04 +0100
Subject: [PATCH] Add gitlab CI.

---
 .gitlab-ci.yml | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..e2eb4a1
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,25 @@
+image: clarinpl/python:3.8
+
+stages:
+  - test
+  - deploy
+
+unittests:
+  stage: test
+  script:
+    - python setup.py test
+
+pypi_deploy:
+  before_script:
+   - pip install twine
+  only:
+   - master
+  stage: deploy
+  when: on_success
+  script:
+   - python setup.py sdist bdist_wheel
+   - python -m twine upload
+     --repository-url https://pypi.clarin-pl.eu/
+     -u $PIPY_USER
+     -p $PIPY_PASS
+     dist/COMBO*.whl
-- 
GitLab