Add htmlproofer stage

This commit is contained in:
lostinlight 2019-03-24 17:23:05 +03:00
parent 62a827ac3c
commit 3bceb9c0a9
1 changed files with 35 additions and 9 deletions

View File

@ -1,22 +1,48 @@
image: node:10.15.0 image: node:10.15.0
pages: hexo:
stage: build
before_script:
- npm install gulp -g
- npm install hexo-cli -g
- npm install
script: script:
- npm install - gulp build --cwd ./themes/starter
- npm install gulp -g - hexo generate
- gulp build --cwd ./themes/starter
- ./node_modules/hexo/bin/hexo generate
artifacts: artifacts:
paths: paths:
- public - public/
cache: cache:
paths: paths:
- node_modules - node_modules/
key: project key: project
only: 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: cert-renewal:
only: only: