mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 12:49:10 +00:00
travis: Set CARGO_HOME to third_party/rust_crates (#1370)
Adds prebuilt hyperfine and sccache binaries Only build test_cc for LSAN Add Cargo.lock Only run benchmarks in master
This commit is contained in:
parent
3dbd18af09
commit
aa66ef98ea
15 changed files with 1471 additions and 41 deletions
37
tools/prebuilt.py
Normal file
37
tools/prebuilt.py
Normal file
|
@ -0,0 +1,37 @@
|
|||
import sys
|
||||
import os
|
||||
from util import run, root_path
|
||||
from third_party import tp, google_env
|
||||
|
||||
|
||||
def download_prebuilt(sha1_file):
|
||||
run([
|
||||
"python",
|
||||
tp('depot_tools/download_from_google_storage.py'),
|
||||
'--platform=' + sys.platform,
|
||||
'--no_auth',
|
||||
'--bucket=denoland',
|
||||
'--sha1_file',
|
||||
sha1_file,
|
||||
],
|
||||
env=google_env())
|
||||
|
||||
|
||||
def load_sccache():
|
||||
if sys.platform == 'win32':
|
||||
p = "prebuilt/win/sccache.exe"
|
||||
elif sys.platform.startswith('linux'):
|
||||
p = "prebuilt/linux64/sccache"
|
||||
elif sys.platform == 'darwin':
|
||||
p = "prebuilt/mac/sccache"
|
||||
download_prebuilt(p + ".sha1")
|
||||
return os.path.join(root_path, p)
|
||||
|
||||
|
||||
def load_hyperfine():
|
||||
if sys.platform == 'win32':
|
||||
download_prebuilt("prebuilt/win/hyperfine.exe.sha1")
|
||||
elif sys.platform.startswith('linux'):
|
||||
download_prebuilt("prebuilt/linux64/hyperfine.sha1")
|
||||
elif sys.platform == 'darwin':
|
||||
download_prebuilt("prebuilt/mac/hyperfine.sha1")
|
Loading…
Add table
Add a link
Reference in a new issue