diff options
author | Aleksey Kladov <[email protected]> | 2021-03-01 17:16:23 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2021-03-01 17:26:37 +0000 |
commit | d9dcfd81c5d4325379ac88c4250b9c77ecbd75e8 (patch) | |
tree | 0795d7277733920361a260db1a65306f1a47e1ac /xtask/src/pre_cache.rs | |
parent | c17f2bf2a27798858ef2e3012ca28295aed46efa (diff) |
Simplify xtask
lib/bin/test separation isn't really needed.
Diffstat (limited to 'xtask/src/pre_cache.rs')
-rw-r--r-- | xtask/src/pre_cache.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xtask/src/pre_cache.rs b/xtask/src/pre_cache.rs index 569f88f68..54f4a95a9 100644 --- a/xtask/src/pre_cache.rs +++ b/xtask/src/pre_cache.rs | |||
@@ -6,12 +6,12 @@ use std::{ | |||
6 | use anyhow::Result; | 6 | use anyhow::Result; |
7 | use xshell::rm_rf; | 7 | use xshell::rm_rf; |
8 | 8 | ||
9 | pub struct PreCacheCmd; | 9 | pub(crate) struct PreCacheCmd; |
10 | 10 | ||
11 | impl PreCacheCmd { | 11 | impl PreCacheCmd { |
12 | /// Cleans the `./target` dir after the build such that only | 12 | /// Cleans the `./target` dir after the build such that only |
13 | /// dependencies are cached on CI. | 13 | /// dependencies are cached on CI. |
14 | pub fn run(self) -> Result<()> { | 14 | pub(crate) fn run(self) -> Result<()> { |
15 | let slow_tests_cookie = Path::new("./target/.slow_tests_cookie"); | 15 | let slow_tests_cookie = Path::new("./target/.slow_tests_cookie"); |
16 | if !slow_tests_cookie.exists() { | 16 | if !slow_tests_cookie.exists() { |
17 | panic!("slow tests were skipped on CI!") | 17 | panic!("slow tests were skipped on CI!") |