Added linting to .gitlab-ci.yml

This commit is contained in:
Greenscreener 2019-07-19 13:09:11 +02:00
parent 7cbcef3936
commit cb062f0b7d

View File

@ -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"