diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000000000000000000000000000000000000..28a5ae02ff76f86deef121ff4ddbba9e55fdbbb7
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,20 @@
+image: python:3.7-stretch
+
+stages:
+    - style
+    - tests
+
+before_script:
+    - pip install -U pip setuptools
+    - pip install tox
+
+tests:
+    script:
+        - tox -r -vv -e py37
+    stage: tests
+
+style:
+    script:
+        - tox -r -vv -e flake8
+    allow_failure: true
+    stage: style