Skip to content

Commit 62decc5

Browse files
committed
Auto merge of #56958 - alexcrichton:upgrade-docker, r=kennytm
ci: Upgrade Travis to Xenial In theory we shouldn't require trusty so long as docker continues to work!
2 parents c0bbc39 + 66f0e42 commit 62decc5

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: shell
22
sudo: required
3-
dist: trusty
3+
dist: xenial
44
services:
55
- docker
66
addons:

src/ci/docker/run.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ travis_time_start
1919

2020
if [ -f "$docker_dir/$image/Dockerfile" ]; then
2121
if [ "$CI" != "" ]; then
22-
cksum=$(find $docker_dir/$image $docker_dir/scripts -type f | \
22+
hash_key=/tmp/.docker-hash-key.txt
23+
find $docker_dir/$image $docker_dir/scripts -type f | \
2324
sort | \
24-
xargs cat | \
25-
sha512sum | \
25+
xargs cat >> $hash_key
26+
docker --version >> $hash_key
27+
cksum=$(sha512sum $hash_key | \
2628
awk '{print $1}')
2729
s3url="s3://$SCCACHE_BUCKET/docker/$cksum"
2830
url="https://s3-us-west-1.amazonaws.com/$SCCACHE_BUCKET/docker/$cksum"

0 commit comments

Comments
 (0)