From 6e7affffacb37b79c61e10c894964d934495da44 Mon Sep 17 00:00:00 2001 From: kennytm Date: Fri, 8 Jun 2018 04:31:30 +0800 Subject: [PATCH 1/2] Remove the `gem update` from `.travis.yml` It has no effect on deployment error and may cause further network issues. --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 9e62b895ed21e..c154f3d8e251f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -301,7 +301,6 @@ before_deploy: rm -rf obj/build/dist/doc && cp -r obj/build/dist/* deploy/$TRAVIS_COMMIT; fi - - travis_retry gem update --system - ls -la deploy/$TRAVIS_COMMIT deploy: From 32e8bda4e35ada92beab7236d62520e6c6df8596 Mon Sep 17 00:00:00 2001 From: kennytm Date: Fri, 8 Jun 2018 04:33:46 +0800 Subject: [PATCH 2/2] Use public DNS server instead of 169.254.169.254 on CI. Tries to workaround travis-ci/travis-ci#9696. --- src/ci/docker/run.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ci/docker/run.sh b/src/ci/docker/run.sh index 3465e386cd925..8913fdaa888e7 100755 --- a/src/ci/docker/run.sh +++ b/src/ci/docker/run.sh @@ -118,6 +118,10 @@ fi # goes ahead and sets it for all builders. args="$args --privileged" +if [ "$CI" != "" ]; then + args="$args --dns 8.8.8.8 --dns 8.8.4.4 --dns 1.1.1.1 --dns 1.0.0.1" +fi + exec docker \ run \ --volume "$root_dir:/checkout:ro" \