Skip to content

Commit b5c35c5

Browse files
alexcrichtonretep998
authored andcommitted
travis: Add timestamps to all build messages
When debugging why builds are taking so long it's often useful to get the timestamp of all log messages as we're not always timing every tiny step of the build. I wrote a [utility] for prepending a relative timestamp from the start of a process which is now downloaded to the builders and is what we wrap the entire build invocation in. [utility]: https://github.com/alexcrichton/stamp-rs Closes rust-lang#40577
1 parent 58c701f commit b5c35c5

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.travis.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ matrix:
5353
osx_image: xcode8.2
5454
install: &osx_install_sccache >
5555
travis_retry curl -o /usr/local/bin/sccache https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror/2017-03-16-sccache-x86_64-apple-darwin &&
56-
chmod +x /usr/local/bin/sccache
56+
chmod +x /usr/local/bin/sccache &&
57+
travis_retry curl -o /usr/local/bin/stamp https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror/2017-03-17-stamp-x86_64-apple-darwin &&
58+
chmod +x /usr/local/bin/stamp
5759
- env: >
5860
RUST_CHECK_TARGET=check
5961
RUST_CONFIGURE_ARGS=--build=i686-apple-darwin
@@ -118,6 +120,11 @@ env:
118120
# AWS_SECRET_ACCESS_KEY=...
119121
- secure: "Pixhh0hXDqGCdOyLtGFjli3J2AtDWIpyb2btIrLe956nCBDRutRoMm6rv5DI9sFZN07Mms7VzNNvhc9wCW1y63JAm414d2Co7Ob8kWMZlz9l9t7ACHuktUiis8yr+S4Quq1Vqd6pqi7pf2J++UxC8R/uLeqVrubzr6+X7AbmEFE="
120122

123+
# Note that this is overridden on OSX builders
124+
install: >
125+
travis_retry curl -o /usr/local/bin/stamp https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror/2017-03-17-stamp-x86_64-unknown-linux-musl &&
126+
chmod +x /usr/local/bin/stamp
127+
121128
before_script:
122129
- >
123130
echo "#### Disk usage before running script:";
@@ -129,11 +136,11 @@ script:
129136
if [ "$ALLOW_PR" = "" ] && [ "$TRAVIS_BRANCH" != "auto" ]; then
130137
echo skipping, not a full build;
131138
elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
132-
travis_retry sh -c 'git submodule deinit -f . && git submodule update --init' &&
133-
src/ci/run.sh;
139+
travis_retry stamp sh -c 'git submodule deinit -f . && git submodule update --init' &&
140+
stamp src/ci/run.sh;
134141
else
135-
travis_retry sh -c 'git submodule deinit -f . && git submodule update --init' &&
136-
src/ci/docker/run.sh $IMAGE;
142+
travis_retry stamp sh -c 'git submodule deinit -f . && git submodule update --init' &&
143+
stamp src/ci/docker/run.sh $IMAGE;
137144
fi
138145
139146
after_success:

0 commit comments

Comments
 (0)