Skip to content

Commit

Permalink
ci: run benchmarks before attempting to deploy them to github pages
Browse files Browse the repository at this point in the history
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 aa66ef9.
  • Loading branch information
piscisaureus committed Dec 20, 2018
1 parent 26794c6 commit 1cd18a9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@ script:
DENO_BUILD_MODE=release ./tools/test.py
- 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:
- gzip -c target/release/deno > target/release/deno_${TRAVIS_OS_NAME}_x64.gz
deploy:
Expand All @@ -100,9 +107,7 @@ deploy:
tags: true
repo: denoland/deno
skip-cleanup: true
# Run benchmarks and publish the result to github pages.
- provider: pages
script: ./tools/benchmark.py target/release && cp -r website/* gh-pages/
github-token: *github-token
keep-history: true
local-dir: gh-pages
Expand Down

0 comments on commit 1cd18a9

Please sign in to comment.