Auto merge of #20168 - servo:jdm-patch-16, r=emilio

Improve disk usage of doc builds.

Continuing the war on disk space usage, I noticed the doc builder on servo-linux4 was growing over time without bound.

<!-- 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/20168)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2018-03-02 10:32:30 -05:00 committed by GitHub
commit 1475b54f5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,6 +14,9 @@ set -o pipefail
cd "$(dirname ${0})/../.." cd "$(dirname ${0})/../.."
# Clean up any traces of previous doc builds.
./etc/ci/clean_build_artifacts.sh
env CC=gcc-5 CXX=g++-5 ./mach doc env CC=gcc-5 CXX=g++-5 ./mach doc
# etc/doc.servo.org/index.html overwrites $(mach rust-root)/doc/index.html # etc/doc.servo.org/index.html overwrites $(mach rust-root)/doc/index.html
# Use recursive copy here to avoid `cp` returning an error code # Use recursive copy here to avoid `cp` returning an error code
@ -35,6 +38,9 @@ cp apis.html ../../target/doc/servo/
echo "Copied apis.html." echo "Copied apis.html."
cd ../.. cd ../..
# Clean up the traces of the current doc build.
./etc/ci/clean_build_artifacts.sh
echo "Starting ghp-import." echo "Starting ghp-import."
ghp-import -n target/doc ghp-import -n target/doc
echo "Finished ghp-import." echo "Finished ghp-import."