mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 15:06:54 -05:00
ci: run benchmarks before attempting to deploy them to github pages
The 'script' key in the deploy section that is supposed to run the
benchmarks isn't doing anything. Because of this, Travis bumps its head
when trying to deploy a non-existing directory to github pages, which
makes that our master branch is now consistently red.
This patch restores the setup that worked before.
This partially reverts commit aa66ef98ea
.
This commit is contained in:
parent
26794c623c
commit
1cd18a9ac6
1 changed files with 7 additions and 2 deletions
|
@ -89,6 +89,13 @@ script:
|
||||||
DENO_BUILD_MODE=release ./tools/test.py
|
DENO_BUILD_MODE=release ./tools/test.py
|
||||||
|
|
||||||
- sccache --stop-server
|
- sccache --stop-server
|
||||||
|
after_success:
|
||||||
|
- |
|
||||||
|
# Run benchmarks and publish the result to github pages.
|
||||||
|
if [ $BENCHMARK ]; then
|
||||||
|
./tools/benchmark.py target/release &&
|
||||||
|
cp -r website/* gh-pages/
|
||||||
|
fi
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- gzip -c target/release/deno > target/release/deno_${TRAVIS_OS_NAME}_x64.gz
|
- gzip -c target/release/deno > target/release/deno_${TRAVIS_OS_NAME}_x64.gz
|
||||||
deploy:
|
deploy:
|
||||||
|
@ -100,9 +107,7 @@ deploy:
|
||||||
tags: true
|
tags: true
|
||||||
repo: denoland/deno
|
repo: denoland/deno
|
||||||
skip-cleanup: true
|
skip-cleanup: true
|
||||||
# Run benchmarks and publish the result to github pages.
|
|
||||||
- provider: pages
|
- provider: pages
|
||||||
script: ./tools/benchmark.py target/release && cp -r website/* gh-pages/
|
|
||||||
github-token: *github-token
|
github-token: *github-token
|
||||||
keep-history: true
|
keep-history: true
|
||||||
local-dir: gh-pages
|
local-dir: gh-pages
|
||||||
|
|
Loading…
Reference in a new issue