From f271caf83033a7a9105edbc7d843c4dcc499fa38 Mon Sep 17 00:00:00 2001 From: SukkaW Date: Mon, 27 Jan 2020 16:05:23 +0800 Subject: [PATCH] ci(flamegraph): fix 0x --- .travis.yml | 2 +- test/benchmark.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index bed19818a2..3c0d72481b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,7 +23,7 @@ script: fi - npm run test-cov - if [[ $TRAVIS_OS_NAME == "linux" ]]; then - npm install 0x && ./test/benchmark.sh; + npm install 0x -g && ./test/benchmark.sh; fi after_script: diff --git a/test/benchmark.sh b/test/benchmark.sh index 7475924db9..2ee58ed6d0 100755 --- a/test/benchmark.sh +++ b/test/benchmark.sh @@ -87,7 +87,7 @@ npx --no-install hexo clean > build.log echo "" echo "- Generating flamegraph..." -node ./node_modules/.bin/0x --output-dir "${TRAVIS_BUILD_DIR}/0x" -- node ./node_modules/.bin/hexo g > build.log 2>&1 ; +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"