From d981a382c97ee86f276d9f2944da82347135e5b6 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Tue, 4 Jun 2019 01:34:42 +0100 Subject: [PATCH] ci: work around various broken aspects of Travis VM image - Symlink broken Ubuntu Python package pieces back together. See many Google hits about this issue. - Remove apt sources that can no longer be updated. --- .ci/ansible_tests.py | 2 ++ .travis.yml | 1 + 2 files changed, 3 insertions(+) diff --git a/.ci/ansible_tests.py b/.ci/ansible_tests.py index 8d2d8bba..51eab874 100755 --- a/.ci/ansible_tests.py +++ b/.ci/ansible_tests.py @@ -63,6 +63,8 @@ with ci_lib.Fold('job_setup'): run("sudo apt-get update") run("sudo apt-get install -y sshpass") + run("bash -c 'sudo ln -vfs /usr/lib/python2.7/plat-x86_64-linux-gnu/_sysconfigdata_nd.py /usr/lib/python2.7 || true'") + run("bash -c 'sudo ln -vfs /usr/lib/python2.7/plat-x86_64-linux-gnu/_sysconfigdata_nd.py $VIRTUAL_ENV/lib/python2.7 || true'") with ci_lib.Fold('ansible'): playbook = os.environ.get('PLAYBOOK', 'all.yml') diff --git a/.travis.yml b/.travis.yml index 206499c1..eae04cb0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,6 +16,7 @@ cache: - /home/travis/virtualenv install: +- grep -Erl git-lfs\|couchdb /etc/apt | sudo xargs rm -v - .ci/${MODE}_install.py script: