summaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..876e324
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,25 @@
+image: debian:unstable
+variables:
+ DEBIAN_FRONTEND: noninteractive
+pre-commit:
+ script:
+ - apt update
+ - apt install -q -y pre-commit git
+ - pre-commit run -a --show-diff-on-failure
+test:
+ script:
+ - apt update
+ - apt build-dep -q -y ./
+ - dpkg-buildpackage
+ artifacts:
+ paths:
+ - build/sphinx/html/
+pages:
+ stage: deploy
+ script:
+ - mv build/sphinx/html/ public
+ artifacts:
+ paths:
+ - public
+ rules:
+ - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'