Added linting to .gitlab-ci.yml

This commit is contained in:
Greenscreener 2019-07-19 13:09:11 +02:00
parent 99aa6da0a6
commit 8331f0a717

View File

@ -1,13 +1,27 @@
variables: variables:
GIT_SUBMODULE_STRATEGY: recursive GIT_SUBMODULE_STRATEGY: recursive
image: lint:
image:
name: docker/compose:1.24.1
entrypoint:
- /bin/sh
- "-c"
services:
- docker:dind
variables:
DOCKER_HOST: "tcp://docker:2375/"
DOCKER_DRIVER: overlay2
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 name: klakegg/hugo:0.55.6-ext-alpine
entrypoint: entrypoint:
- /bin/sh - /bin/sh
- "-c" - "-c"
build:
script: script:
- hugo --minify - hugo --minify
artifacts: artifacts:
@ -18,6 +32,11 @@ build:
- master - master
test: test:
image:
name: klakegg/hugo:0.55.6-ext-alpine
entrypoint:
- /bin/sh
- "-c"
script: script:
- hugo_output=$(hugo --path-warnings --i18n-warnings) - hugo_output=$(hugo --path-warnings --i18n-warnings)
- echo "$hugo_output" - echo "$hugo_output"