From 3bceb9c0a984e9c406b6fec18dbdb0568256b7c4 Mon Sep 17 00:00:00 2001 From: lostinlight Date: Sun, 24 Mar 2019 17:23:05 +0300 Subject: [PATCH] Add htmlproofer stage --- .gitlab-ci.yml | 44 +++++++++++++++++++++++++++++++++++--------- 1 file changed, 35 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1c1be47..b22ec94 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,22 +1,48 @@ image: node:10.15.0 -pages: +hexo: + stage: build + before_script: + - npm install gulp -g + - npm install hexo-cli -g + - npm install script: - - npm install - - npm install gulp -g - - gulp build --cwd ./themes/starter - - ./node_modules/hexo/bin/hexo generate + - gulp build --cwd ./themes/starter + - hexo generate artifacts: paths: - - public + - public/ cache: paths: - - node_modules + - node_modules/ key: project - only: - - master + - master + +htmlproofer: + stage: test + image: bobik/html-proofer-docker:gitlabci # fork of 18fgsa/html-proofer + script: + - htmlproofer public/ --checks-to-ignore ScriptCheck,ImageCheck + dependencies: + - hexo + only: + - master + +pages: + stage: deploy + variables: + GIT_STRATEGY: none + artifacts: + paths: + - public/ + dependencies: + - hexo + script: + - echo 'Deploying...' + only: + - master cert-renewal: only: