From 8a7f7f1184aaa0be27236a8604ed40eff366fe0c Mon Sep 17 00:00:00 2001
From: Olivier Bertrand <olivier.bertrand@uni-bielefeld.de>
Date: Fri, 16 Mar 2018 18:39:30 +0100
Subject: [PATCH] Add gitlab ci

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..a8af90e
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,33 @@
+# This file is a template, and might need editing before it works on your project.
+# This file is a template, and might need editing before it works on your project.
+image: python:latest
+
+before_script:
+  - python3 -V                                   # Print out python version for debugging
+
+test:
+  script:
+  - python3 setup.py test
+  - pip3 install tox flake8  # you can also use tox
+  - tox -e py36,flake8
+
+run:
+  script:
+  - python3 setup.py bdist_wheel
+  # an alternative approach is to install and run:
+  - pip3 install dist/*
+  # run the command here
+  artifacts:
+    paths:
+    - dist/*.whl
+
+pages:
+  script:
+  - pip3 install sphinx sphinx-rtd-theme
+  - cd doc ; make html
+  - mv build/html/ ../public/
+  artifacts:
+    paths:
+    - public
+  only:
+  - master
-- 
GitLab