Skip to content

Commit

Permalink
Auto merge of #56958 - alexcrichton:upgrade-docker, r=kennytm
Browse files Browse the repository at this point in the history
ci: Upgrade Travis to Xenial

In theory we shouldn't require trusty so long as docker continues to
work!
  • Loading branch information
bors committed Jan 4, 2019
2 parents c0bbc39 + 66f0e42 commit 62decc5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: shell
sudo: required
dist: trusty
dist: xenial
services:
- docker
addons:
Expand Down
8 changes: 5 additions & 3 deletions src/ci/docker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 62decc5

Please sign in to comment.