resolves #4 add job to runs linters in CI
authorDan Allen <dan@opendevise.com>
Sun, 8 Oct 2017 01:56:29 +0000 (19:56 -0600)
committerDan Allen <dan@opendevise.com>
Sun, 8 Oct 2017 02:12:19 +0000 (20:12 -0600)
.gitlab-ci.yml [new file with mode: 0644]
README.adoc

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644 (file)
index 0000000..a78f2f8
--- /dev/null
@@ -0,0 +1,20 @@
+image: node:8
+stages:
+- setup
+- verify
+yarn:
+  stage: setup
+  script:
+  - npm install -g yarn
+  - yarn --cache-folder=.yarn-cache
+  cache:
+    paths:
+    - node_modules/
+    - .yarn-cache/
+lint:
+  stage: verify
+  cache:
+    policy: pull
+    paths:
+    - node_modules/
+  script: node_modules/.bin/gulp lint
index 8b7887e..3672aac 100644 (file)
@@ -1,6 +1,10 @@
 = Antora Default UI
 // Project URIs:
 :uri-project: https://gitlab.com/antora/antora-ui-default
+:uri-ci-pipelines: {uri-project}/pipelines
+:img-ci-status: {uri-project}/badges/master/pipeline.svg
+
+image:{img-ci-status}[CI Status (GitLab CI), link={uri-ci-pipelines}]
 
 This project is an archetype that demonstrates how to produce a UI bundle for use in an Antora-based documentation pipeline.