summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2017-12-22 16:34:53 +0100
committerChristoph Reiter <reiter.christoph@gmail.com>2018-01-10 17:45:22 +0100
commitadf5e51ccf9d9dbf938c0da496e0d4d81d3284f6 (patch)
tree5eb2bf57dc56c0e2f425ed6eecd0a2136e108e52 /.gitlab-ci.yml
parent661e64ce6091724b86a934268daa2c80bda46eb5 (diff)
downloadpygobject-adf5e51ccf9d9dbf938c0da496e0d4d81d3284f6.tar.gz
Add gitlab CI tests
Adds a Dockerfile which is available on the docker hub and gets used by the gitlab test runner. The tests get executed in an Ubuntu 17.04 image for various Python versions and consist of building, testing, code quality testing and documentation build testing.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 00000000..5408a38f
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,22 @@
+services:
+ - docker
+
+image: lazka/pygobject:latest
+
+.defaults: &defaults
+ variables:
+ PYTHON: "$CI_JOB_NAME"
+ script:
+ - bash -x ./.gitlab-ci/test-docker.sh
+
+python2.7:
+ <<: *defaults
+
+python3.4:
+ <<: *defaults
+
+python3.5:
+ <<: *defaults
+
+python3.6:
+ <<: *defaults