From c63825bfd47a27e5f233ee09f73efdba0138692b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vojt=C4=9Bch=20K=C3=A1n=C4=9B?= Date: Tue, 16 Jul 2019 11:34:03 +0200 Subject: [PATCH] Enable Gitlab CI to test buildability. --- .gitlab-ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..0a90909 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,29 @@ +variables: + GIT_SUBMODULE_STRATEGY: recursive + +image: + name: klakegg/hugo:0.55.6-ext-alpine + entrypoint: + - /bin/sh + - "-c" + +build: + script: + - hugo --minify + artifacts: + paths: + - public + expire_in: 3 months + only: + - master + +test: + 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