travis: Enable apt updates on builds

This used to happen by default, and travis changed the default.
This commit is contained in:
James Shubin
2018-05-09 13:46:04 -04:00
parent 22c0ff3cf5
commit 9ea5c03371

View File

@@ -8,6 +8,9 @@ go:
go_import_path: github.com/purpleidea/mgmt go_import_path: github.com/purpleidea/mgmt
sudo: true sudo: true
dist: trusty dist: trusty
# travis requires that you update manually, and provides this key to trigger it
apt:
update: true
before_install: before_install:
# as per a number of comments online, this might mitigate some flaky fails... # as per a number of comments online, this might mitigate some flaky fails...
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6; fi - if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6; fi