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:
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"
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
entrypoint:
- /bin/sh
- "-c"
script:
- hugo --minify
artifacts:
@ -18,6 +32,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"