49 lines
1.0 KiB
YAML
49 lines
1.0 KiB
YAML
variables:
|
|
GIT_SUBMODULE_STRATEGY: recursive
|
|
|
|
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:
|
|
paths:
|
|
- public
|
|
expire_in: 3 months
|
|
only:
|
|
- 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"
|
|
- if echo "$hugo_output" | grep -q 'i18n|MISSING_TRANSLATION'; then false; else true; fi
|
|
- if echo "$hugo_output" | grep -q 'WARN.*Duplicate target paths'; then false; else true; fi
|
|
artifacts:
|
|
paths:
|
|
- public
|
|
expire_in: 1 month
|