Commit 3bceb9c0 authored by lostinlight's avatar lostinlight

Add htmlproofer stage

parent 62a827ac
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
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
- master
cert-renewal:
only:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment