Add Travis CI build for the documentation
[noc.git] / .travis.yml
diff --git a/.travis.yml b/.travis.yml
new file mode 100644 (file)
index 0000000..f309faf
--- /dev/null
@@ -0,0 +1,22 @@
+---
+sudo: no
+addons:
+  apt:
+    packages:
+      - graphviz
+      - ikiwiki
+      - imagemagick
+      - libtext-markdown-discount-perl
+      - libtext-typography-perl
+
+script: make -C doc
+
+deploy:
+  provider: pages
+  skip-cleanup: true
+  local-dir: doc/dest
+  fqdn: noc.realraum.at
+  github-token: $GITHUB_TOKEN  # Set as a secure variable
+  keep-history: true
+  on:
+    branch: master