Commit 47814875 authored by JiangTJ's avatar JiangTJ 😋

fix ci

parent 47ce0a9c
Pipeline #76133433 failed with stage
in 10 minutes and 6 seconds
......@@ -7,12 +7,12 @@ run-test:
stage: test
script:
# init
- yarn global add hexo-cli
- yarn global add hexo-cli --silent
- hexo init test-dir
- cp run-hexo.sh test-dir/
- cd test-dir
- git clone https://github.com/jiangtj-lab/hexo-many-posts.git --depth=1 --quiet source/_post/skk
- yarn install
- git clone https://github.com/jiangtj-lab/hexo-many-posts.git --depth=1 --quiet source/_posts/skk
- yarn install --silent
# 测试默认主题
- sh run-hexo.sh
......@@ -39,6 +39,9 @@ run-test:
- rm -rf themes/*
- git clone https://github.com/SukkaW/hexo-theme-suka.git themes/hexo-theme-suka --quiet --single-branch
- hexo config theme hexo-theme-suka
- cd themes/suka
- yarn install --silent
- cd ../../
- sh run-hexo.sh
- sh run-hexo.sh
- sh run-hexo.sh
#!/bin/sh
echo '* Test performance running ... '
echo 'Test performance running ... '
hexo cl > /dev/null
cat _config.yml | grep 'theme:'
hexo g > run.log
cat run.log | grep 'generated in'
echo '* Test end'
echo '-------------------------------------'
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