/
githubmirror
/
hexo
Обзор
Документация
Войти
/
githubmirror
/
hexo
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
5.0.2
test/profiling.sh
38 строк
1 KB
扩散性百万甜面包
feat(benchmark): rewritten script (#4405)
06 июл 2020, 17:40
Не верифицирован
06 июл 2020, 17:40
639199e
Код
Авторство
О чём код?
#!/bin/sh echo "- Set up dummy Hexo site" cd $TRAVIS_BUILD_DIR cd .. git clone https://github.com/hexojs/hexo-theme-unit-test.git --depth=1 --quiet cd hexo-theme-unit-test echo "- Install hexo-theme-landscape" git clone https://github.com/hexojs/hexo-theme-landscape --depth=1 --quiet themes/landscape echo "- npm install" npm install --silent echo "- Import 500 posts" git clone https://github.com/SukkaLab/hexo-many-posts.git source/_posts/hexo-many-posts --depth=1 --quiet rm -rf source/_posts/hexo-many-posts/.git/ echo "- Replace node_modules/hexo" rm -rf node_modules/hexo ln -sf $TRAVIS_BUILD_DIR node_modules/hexo echo "- Start test run" echo "" echo "--------------------------------------------" npx --no-install hexo clean > build.log echo "" echo "- Generating flamegraph..." npm install 0x --silent node ./node_modules/.bin/0x --output-dir "${TRAVIS_BUILD_DIR}/0x" -- node ./node_modules/.bin/hexo g > build.log 2>&1 ; echo "Flamegraph will be deployed to: https://${TRAVIS_COMMIT}-${TRAVIS_NODE_VERSION}-hexo.surge.sh/flamegraph.html" rm -rf build.log cd $TRAVIS_BUILD_DIR