File tree Expand file tree Collapse file tree 2 files changed +11
-14
lines changed Expand file tree Collapse file tree 2 files changed +11
-14
lines changed Original file line number Diff line number Diff line change @@ -103,21 +103,15 @@ jobs:
103
103
104
104
- run : cargo test
105
105
- name : Clear intermediate test output
106
- run : |
107
- df -h
108
- rm -rf target/tmp
109
- df -h
106
+ run : ci/clean-test-output.sh
110
107
- name : gitoxide tests (all git-related tests)
111
108
run : cargo test git
112
109
env :
113
110
__CARGO_USE_GITOXIDE_INSTEAD_OF_GIT2 : 1
114
111
# The testsuite generates a huge amount of data, and fetch-smoke-test was
115
112
# running out of disk space.
116
113
- name : Clear test output
117
- run : |
118
- df -h
119
- rm -rf target/tmp
120
- df -h
114
+ run : ci/clean-test-output.sh
121
115
- name : Check operability of rustc invocation with argfile
122
116
env :
123
117
__CARGO_TEST_FORCE_ARGFILE : 1
@@ -151,10 +145,7 @@ jobs:
151
145
# The testsuite generates a huge amount of data, and fetch-smoke-test was
152
146
# running out of disk space.
153
147
- name : Clear benchmark output
154
- run : |
155
- df -h
156
- rm -rf target/tmp
157
- df -h
148
+ run : ci/clean-test-output.sh
158
149
- name : Fetch smoke test
159
150
run : ci/fetch-smoke-test.sh
160
151
@@ -179,8 +170,6 @@ jobs:
179
170
180
171
build_std :
181
172
runs-on : ubuntu-latest
182
- env :
183
- CARGO_REGISTRIES_CRATES_IO_PROTOCOL : sparse
184
173
steps :
185
174
- uses : actions/checkout@v3
186
175
- run : rustup update nightly && rustup default nightly
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # This script remove test and benchmark output and displays disk usage.
3
+
4
+ set -euo pipefail
5
+
6
+ df -h
7
+ rm -rf target/tmp
8
+ df -h
You can’t perform that action at this time.
0 commit comments