Added linting to .gitlab-ci.yml
This commit is contained in:
parent
7cbcef3936
commit
cb062f0b7d
@ -1,13 +1,22 @@
|
|||||||
variables:
|
variables:
|
||||||
GIT_SUBMODULE_STRATEGY: recursive
|
GIT_SUBMODULE_STRATEGY: recursive
|
||||||
|
|
||||||
|
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:
|
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 +27,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"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user