mirror of
https://github.com/rust-lang/cargo.git
synced 2026-04-20 20:57:01 +00:00
ci: make clean-test-output a script for reuse
This commit is contained in:
15
.github/workflows/main.yml
vendored
15
.github/workflows/main.yml
vendored
@@ -103,10 +103,7 @@ jobs:
|
||||
|
||||
- run: cargo test
|
||||
- name: Clear intermediate test output
|
||||
run: |
|
||||
df -h
|
||||
rm -rf target/tmp
|
||||
df -h
|
||||
run: ci/clean-test-output.sh
|
||||
- name: gitoxide tests (all git-related tests)
|
||||
run: cargo test git
|
||||
env:
|
||||
@@ -114,10 +111,7 @@ jobs:
|
||||
# The testsuite generates a huge amount of data, and fetch-smoke-test was
|
||||
# running out of disk space.
|
||||
- name: Clear test output
|
||||
run: |
|
||||
df -h
|
||||
rm -rf target/tmp
|
||||
df -h
|
||||
run: ci/clean-test-output.sh
|
||||
- name: Check operability of rustc invocation with argfile
|
||||
env:
|
||||
__CARGO_TEST_FORCE_ARGFILE: 1
|
||||
@@ -151,10 +145,7 @@ jobs:
|
||||
# The testsuite generates a huge amount of data, and fetch-smoke-test was
|
||||
# running out of disk space.
|
||||
- name: Clear benchmark output
|
||||
run: |
|
||||
df -h
|
||||
rm -rf target/tmp
|
||||
df -h
|
||||
run: ci/clean-test-output.sh
|
||||
- name: Fetch smoke test
|
||||
run: ci/fetch-smoke-test.sh
|
||||
|
||||
|
||||
8
ci/clean-test-output.sh
Executable file
8
ci/clean-test-output.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
# This script remove test and benchmark output and displays disk usage.
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
df -h
|
||||
rm -rf target/tmp
|
||||
df -h
|
||||
Reference in New Issue
Block a user