diff options
author | Haihao Xiang <haihao.xiang@intel.com> | 2018-02-26 15:26:05 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2018-03-02 08:27:06 +0800 |
commit | 14a2088ed161cb9165c552cc65efde028d1bb8f9 (patch) | |
tree | f5beac841da0cb95b1904885b007989d4913e7e3 /.travis.yml | |
parent | b2fdaf4eb465269656417eb03699ea47d0e532bd (diff) | |
download | libva-14a2088ed161cb9165c552cc65efde028d1bb8f9.tar.gz |
Update .travis.yml
The travis build is often blocked by the following error
$ sudo apt-get install -y build-essential
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource
temporarily unavailable)
Feedback from travis is the dpkg lock file might be locked by an
unattended `apt-get` call that's running in the background on a daily
basis and travis suggests adding the corresponding snippet before
apt-get call in .travis.yml
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index 659b683..1566de3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,6 +16,12 @@ env: before_install: - test "${TRAVIS_BRANCH}" != 'coverity_scan' -o "${TRAVIS_JOB_NUMBER##*.}" = '1' || exit 0 - echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca- + - | + sudo systemctl stop apt-daily.service && + sudo systemctl kill --kill-who=all apt-daily.service && + while ! (systemctl list-units --all apt-daily.service | fgrep -q dead) ; do + sleep 1 + done - pip install --user cpp-coveralls - sudo apt-get -qq update - sudo apt-get install -y build-essential |