about summary refs log tree commit diff
path: root/src/ci/docker
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2018-12-18 13:32:09 -0800
committerAlex Crichton <alex@alexcrichton.com>2019-01-03 12:22:37 -0800
commit66f0e42b4e6fd719099fe327d2731abd5b66ed41 (patch)
tree5ab09a081eb226980698c898f3f204e21bf70f37 /src/ci/docker
parenta36b960df626cbb8bea74f01243318b73f0bd201 (diff)
downloadrust-66f0e42b4e6fd719099fe327d2731abd5b66ed41.tar.gz
rust-66f0e42b4e6fd719099fe327d2731abd5b66ed41.zip
ci: Upgrade Travis to Xenial
In theory we shouldn't require trusty so long as docker continues to
work!
Diffstat (limited to 'src/ci/docker')
-rwxr-xr-xsrc/ci/docker/run.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ci/docker/run.sh b/src/ci/docker/run.sh
index ebef27360c0..ad6188568cf 100755
--- a/src/ci/docker/run.sh
+++ b/src/ci/docker/run.sh
@@ -19,10 +19,12 @@ travis_time_start
 
 if [ -f "$docker_dir/$image/Dockerfile" ]; then
     if [ "$CI" != "" ]; then
-      cksum=$(find $docker_dir/$image $docker_dir/scripts -type f | \
+      hash_key=/tmp/.docker-hash-key.txt
+      find $docker_dir/$image $docker_dir/scripts -type f | \
         sort | \
-        xargs cat | \
-        sha512sum | \
+        xargs cat >> $hash_key
+      docker --version >> $hash_key
+      cksum=$(sha512sum $hash_key | \
         awk '{print $1}')
       s3url="s3://$SCCACHE_BUCKET/docker/$cksum"
       url="https://s3-us-west-1.amazonaws.com/$SCCACHE_BUCKET/docker/$cksum"