Skip to content

Commit d981a38

Browse files
committed
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.
1 parent ad5a80f commit d981a38

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.ci/ansible_tests.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ def pause_if_interactive():
6363
run("sudo apt-get update")
6464
run("sudo apt-get install -y sshpass")
6565

66+
run("bash -c 'sudo ln -vfs /usr/lib/python2.7/plat-x86_64-linux-gnu/_sysconfigdata_nd.py /usr/lib/python2.7 || true'")
67+
run("bash -c 'sudo ln -vfs /usr/lib/python2.7/plat-x86_64-linux-gnu/_sysconfigdata_nd.py $VIRTUAL_ENV/lib/python2.7 || true'")
6668

6769
with ci_lib.Fold('ansible'):
6870
playbook = os.environ.get('PLAYBOOK', 'all.yml')

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ cache:
1616
- /home/travis/virtualenv
1717

1818
install:
19+
- grep -Erl git-lfs\|couchdb /etc/apt | sudo xargs rm -v
1920
- .ci/${MODE}_install.py
2021

2122
script:

0 commit comments

Comments
 (0)