summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorSnir Sheriber <ssheribe@redhat.com>2019-12-15 14:48:05 +0200
committerFrediano Ziglio <fziglio@redhat.com>2019-12-16 08:59:16 +0000
commitecd9a84837972e498e480af356428f2b00ff8150 (patch)
tree10d889440d68fc8e94e83f8701e12883d57d6448 /.gitlab-ci.yml
parentebb7948b96f99ab6708fec370dc6109afdc71362 (diff)
ci: test docs with asciidocter before trigger spice-space ci
Acked-by: Frediano Ziglio <fziglio@redhat.com>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml6
1 files changed, 4 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index edb3f408..fd110c78 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -167,9 +167,9 @@ websocket-autobahn:
- server/tests/autobahn-check-report reports/servers/index.json
trigger-website-update:
- image: alpine:latest
+ image: ruby:latest
before_script:
- - apk add curl
+ - gem install asciidoctor
only:
variables:
- $TOKEN
@@ -179,4 +179,6 @@ trigger-website-update:
- "docs/manual/*.txt"
- "docs/manual/images/*"
script:
+ - asciidoctor -d book docs/*.txt docs/manual/*.txt > errors 2>&1
+ - if [ -n "$(cat errors)" ] ; then cat errors; exit 1 ; fi
- curl -X POST -F token=$TOKEN -F ref=master https://gitlab.freedesktop.org/api/v4/projects/spice%2Fspice-space/trigger/pipeline