Auto merge of #20107 - servo:jdm-patch-10, r=emilio

Clean more build artificats

This is the latest attempt in the war against disk space usage on the build machines.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20107)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2018-02-23 10:09:49 -05:00 committed by GitHub
commit f74451f039
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 6 deletions

View file

@ -79,14 +79,14 @@ mac-nightly:
linux-rel-intermittent: linux-rel-intermittent:
- ./mach clean-nightlies --keep 3 --force - ./mach clean-nightlies --keep 3 --force
- ./mach clean-cargo-cache --keep 3 --force - ./mach clean-cargo-cache --keep 3 --force
- ./mach clean - ./etc/ci/clean_build_artifacts.sh
- ./mach build --release - ./mach build --release
- ./etc/ci/check_intermittents.sh --log-raw intermittents.log - ./etc/ci/check_intermittents.sh --log-raw intermittents.log
linux-rel-nogate: linux-rel-nogate:
- ./mach clean-nightlies --keep 3 --force - ./mach clean-nightlies --keep 3 --force
- ./mach clean-cargo-cache --keep 3 --force - ./mach clean-cargo-cache --keep 3 --force
- ./mach clean - ./etc/ci/clean_build_artifacts.sh
- ./mach build --release - ./mach build --release
- python ./etc/ci/chaos_monkey_test.py - python ./etc/ci/chaos_monkey_test.py
- env RUSTFLAGS= bash ./etc/ci/mutation_test.sh - env RUSTFLAGS= bash ./etc/ci/mutation_test.sh
@ -104,7 +104,7 @@ linux-dev:
commands: commands:
- ./mach clean-nightlies --keep 3 --force - ./mach clean-nightlies --keep 3 --force
- ./mach clean-cargo-cache --keep 3 --force - ./mach clean-cargo-cache --keep 3 --force
- ./mach clean - ./etc/ci/clean_build_artifacts.sh
- ./mach test-tidy --no-progress --all - ./mach test-tidy --no-progress --all
- ./mach test-tidy --no-progress --self-test - ./mach test-tidy --no-progress --self-test
- ./mach build --dev - ./mach build --dev
@ -124,7 +124,7 @@ linux-rel-wpt:
commands: commands:
- ./mach clean-nightlies --keep 3 --force - ./mach clean-nightlies --keep 3 --force
- ./mach clean-cargo-cache --keep 3 --force - ./mach clean-cargo-cache --keep 3 --force
- ./mach clean - ./etc/ci/clean_build_artifacts.sh
- ./mach build --release --with-debug-assertions - ./mach build --release --with-debug-assertions
- ./mach test-wpt-failure - ./mach test-wpt-failure
- ./mach test-wpt --release --processes 24 --total-chunks 2 --this-chunk 1 --log-raw test-wpt.log --log-errorsummary wpt-errorsummary.log --always-succeed - ./mach test-wpt --release --processes 24 --total-chunks 2 --this-chunk 1 --log-raw test-wpt.log --log-errorsummary wpt-errorsummary.log --always-succeed
@ -138,7 +138,7 @@ linux-rel-css:
commands: commands:
- ./mach clean-nightlies --keep 3 --force - ./mach clean-nightlies --keep 3 --force
- ./mach clean-cargo-cache --keep 3 --force - ./mach clean-cargo-cache --keep 3 --force
- ./mach clean - ./etc/ci/clean_build_artifacts.sh
- ./mach build --release --with-debug-assertions - ./mach build --release --with-debug-assertions
- ./mach test-wpt --release --processes 24 --total-chunks 2 --this-chunk 2 --log-raw test-wpt.log --log-errorsummary wpt-errorsummary.log --always-succeed - ./mach test-wpt --release --processes 24 --total-chunks 2 --this-chunk 2 --log-raw test-wpt.log --log-errorsummary wpt-errorsummary.log --always-succeed
- ./mach filter-intermittents wpt-errorsummary.log --log-intermittents intermittents.log --log-filteredsummary filtered-wpt-errorsummary.log --tracker-api default --reporter-api default - ./mach filter-intermittents wpt-errorsummary.log --log-intermittents intermittents.log --log-filteredsummary filtered-wpt-errorsummary.log --tracker-api default --reporter-api default
@ -150,7 +150,7 @@ linux-rel-css:
linux-nightly: linux-nightly:
- ./mach clean-nightlies --keep 3 --force - ./mach clean-nightlies --keep 3 --force
- ./mach clean-cargo-cache --keep 3 --force - ./mach clean-cargo-cache --keep 3 --force
- ./mach clean - ./etc/ci/clean_build_artifacts.sh
- ./mach build --release - ./mach build --release
- ./mach package --release - ./mach package --release
- ./mach upload-nightly linux - ./mach upload-nightly linux

11
etc/ci/clean_build_artifacts.sh Executable file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
set -o errexit
set -o nounset
set -o pipefail
rm -rf target/{debug,release,doc,geckolib}