mirror of
https://codeberg.org/fediverse/fediparty.git
synced 2025-01-10 18:09:32 +00:00
Add htmlproofer stage
This commit is contained in:
parent
62a827ac3c
commit
3bceb9c0a9
|
@ -1,20 +1,46 @@
|
|||
|
||||
image: node:10.15.0
|
||||
|
||||
pages:
|
||||
script:
|
||||
- npm install
|
||||
hexo:
|
||||
stage: build
|
||||
before_script:
|
||||
- npm install gulp -g
|
||||
- npm install hexo-cli -g
|
||||
- npm install
|
||||
script:
|
||||
- gulp build --cwd ./themes/starter
|
||||
- ./node_modules/hexo/bin/hexo generate
|
||||
- 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
|
||||
|
||||
|
|
Loading…
Reference in a new issue