Skip to content

Commit

Permalink
Add a test for hexo pull 3671
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Aug 16, 2019
1 parent 68f8117 commit 9e2da57
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion perf-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ npm run generate > perf.log
cat perf.log | grep 'generated in'

npm uninstall hexo --save
npm install git+https://github.com/sukkaw/hexo.git#lazy-moment
npm install git+https://github.com/curbengh/hexo.git#metagen-cheerio

echo '-------------------------------------'
echo ' Test B'
Expand All @@ -69,6 +69,16 @@ echo ' - auto_detect: false'
echo ' - tab_replace: false'
echo '-------------------------------------'

../bin/yq w -i _config.yml highlight.enable false
../bin/yq w -i _config.yml highlight.line_number false
../bin/yq w -i _config.yml highlight.auto_detect false
../bin/yq w -i _config.yml highlight.tab_replace false

../bin/yq w -i _config.yml meta_generator true
../bin/yq w -i _config.yml external_link false

../bin/yq w -i _config.yml theme landscape

echo -n 'Round 1: '
npm run clean > /dev/null
npm run generate > perf.log
Expand Down

0 comments on commit 9e2da57

Please sign in to comment.