Commit ef417465 authored by JiangTJ's avatar JiangTJ 😋

test next

parent f32ca857
Pipeline #88593060 passed with stage
in 5 minutes and 14 seconds
......@@ -6,8 +6,6 @@ stages:
run-test:
stage: test
script:
# load data
- git clone https://github.com/theme-next/hexo-theme-next.git --depth=1 --quiet --single-branch next
# init
- yarn global add hexo-cli --silent
- hexo init test-dir --silent
......@@ -15,7 +13,6 @@ run-test:
# scripts
- mkdir test-dir/scripts
- cp rm-filter.js test-dir/scripts/
- mv next/scripts/tags test-dir/scripts/tags
# posts
- cd test-dir
- git clone https://github.com/jiangtj-lab/hexo-many-posts.git --depth=1 --quiet source/_posts/skk
......@@ -28,24 +25,8 @@ run-test:
- sh run-hexo.sh
#- sh run-hexo.sh
# 测试hexo-theme-cake
- rm -rf themes/*
- git clone https://github.com/jiangtj/hexo-theme-cake.git themes/cake --depth=1 --quiet --single-branch
- hexo config theme cake
#- hexo config theme_config.lozad.enable false
- sh run-hexo.sh
- sh run-hexo.sh
#- sh run-hexo.sh
# 测试hexo-theme-icarus
- rm -rf themes/*
- git clone https://github.com/ppoffice/hexo-theme-icarus.git themes/icarus --depth=1 --quiet --single-branch
- hexo config theme icarus
- sh run-hexo.sh
- sh run-hexo.sh
#- sh run-hexo.sh
# 测试hexo-theme-next
- echo test master branch
- rm -rf themes/*
- git clone https://github.com/theme-next/hexo-theme-next.git themes/next --depth=1 --quiet --single-branch
- hexo config theme next
......@@ -53,23 +34,11 @@ run-test:
- sh run-hexo.sh
#- sh run-hexo.sh
# 测试hexo-theme-inside
- rm -rf themes/*
- git clone https://github.com/ikeq/hexo-theme-inside.git themes/inside --depth=1 --quiet --single-branch
- hexo config theme inside
- sh run-hexo.sh
- sh run-hexo.sh
#- sh run-hexo.sh
# 测试hexo-theme-suka
# 测试hexo-theme-next
- echo test front-matter branch
- rm -rf themes/*
- git clone https://github.com/SukkaW/hexo-theme-suka.git themes/suka --depth=1 --quiet --single-branch
- hexo config theme suka
- cat themes/suka/site_config.yml >> _config.yml
- cd themes/suka
- yarn install --silent
- cp -i _config.example.yml _config.yml
- cd ../../
- git clone https://github.com/theme-next/hexo-theme-next.git themes/next -b front-matter --depth=1 --quiet --single-branch
- hexo config theme next
- sh run-hexo.sh
- sh run-hexo.sh
#- sh run-hexo.sh
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