From ac3d628cf2b5ac8933dcd95308e45890adca77e1 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Sat, 7 Oct 2017 19:56:29 -0600 Subject: [PATCH] resolves #4 add job to runs linters in CI --- .gitlab-ci.yml | 20 ++++++++++++++++++++ README.adoc | 4 ++++ 2 files changed, 24 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..a78f2f8 --- /dev/null +++ b/.gitlab-ci.yml @@ -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 diff --git a/README.adoc b/README.adoc index 8b7887e..3672aac 100644 --- a/README.adoc +++ b/README.adoc @@ -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. -- 2.11.0