From cb062f0b7d52fcecd56fb6d98533a3c0ede39b22 Mon Sep 17 00:00:00 2001 From: Greenscreener Date: Fri, 19 Jul 2019 13:09:11 +0200 Subject: [PATCH] Added linting to .gitlab-ci.yml --- .gitlab-ci.yml | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0a90909..f9ca99c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,15 +1,24 @@ variables: GIT_SUBMODULE_STRATEGY: recursive -image: - name: klakegg/hugo:0.55.6-ext-alpine - entrypoint: - - /bin/sh - - "-c" - +lint: + image: + name: docker/compose:1.24.1 + entrypoint: + - /bin/sh + - "-c" + script: + - docker-compose run xo-js-lint + - docker-compose run xo-html-lint + - docker-compose run sass-lint build: + image: + name: klakegg/hugo:0.55.6-ext-alpine + entrypoint: + - /bin/sh + - "-c" script: - - hugo --minify + - hugo --minify artifacts: paths: - public @@ -18,6 +27,11 @@ build: - master test: + image: + name: klakegg/hugo:0.55.6-ext-alpine + entrypoint: + - /bin/sh + - "-c" script: - hugo_output=$(hugo --path-warnings --i18n-warnings) - echo "$hugo_output"