aboutsummaryrefslogtreecommitdiff
path: root/xtask
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-07-24 20:07:58 +0100
committerAleksey Kladov <[email protected]>2020-07-24 20:07:58 +0100
commit75e67ee74e5d3db5363732bb793b872c57408013 (patch)
tree9a4fe1b61aa77b6b164255f1b06d83ad1db1b398 /xtask
parentcdddd205f600c844ef1bae3038bb1da48c382b11 (diff)
Real metrics
Diffstat (limited to 'xtask')
-rw-r--r--xtask/src/metrics.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/xtask/src/metrics.rs b/xtask/src/metrics.rs
index 4c8249b8e..9567f18f0 100644
--- a/xtask/src/metrics.rs
+++ b/xtask/src/metrics.rs
@@ -18,8 +18,8 @@ pub fn run_metrics() -> Result<()> {
18 18
19 { 19 {
20 let _d = pushd("target"); 20 let _d = pushd("target");
21 let api_token = env::var("METRICS_TOKEN").unwrap(); 21 let metrics_token = env::var("METRICS_TOKEN").unwrap();
22 let repo = format!("https://{}@github.com/rust-analyzer/metrics.git", api_token); 22 let repo = format!("https://{}@github.com/rust-analyzer/metrics.git", metrics_token);
23 run!("git clone --depth 1 {}", repo)?; 23 run!("git clone --depth 1 {}", repo)?;
24 let _d = pushd("metrics"); 24 let _d = pushd("metrics");
25 25
@@ -39,7 +39,7 @@ impl Metrics {
39 rm_rf("./target/release")?; 39 rm_rf("./target/release")?;
40 40
41 let build = Instant::now(); 41 let build = Instant::now();
42 // run!("cargo build --release --package rust-analyzer --bin rust-analyzer")?; 42 run!("cargo build --release --package rust-analyzer --bin rust-analyzer")?;
43 let build = build.elapsed(); 43 let build = build.elapsed();
44 self.report("build", build.as_millis() as u64, "ms"); 44 self.report("build", build.as_millis() as u64, "ms");
45 Ok(()) 45 Ok(())