1
0
Fork 0
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:
Bert Belder 2018-12-20 03:29:12 +01:00
parent 26794c623c
commit 1cd18a9ac6
No known key found for this signature in database
GPG key ID: 7A77887B2E2ED461

View file

@ -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