OSDN Git Service

Update .travis.yml
authorHaihao Xiang <haihao.xiang@intel.com>
Wed, 7 Mar 2018 03:12:05 +0000 (11:12 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Tue, 13 Mar 2018 01:01:08 +0000 (09:01 +0800)
Like what we did in commit 14a2088 for libva, the corresponding fix is
also required for this driver to avoid locking dpkg file by an
unattended `apt-get` call

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
.travis.yml

index 23f323d..b0d5f49 100644 (file)
@@ -15,6 +15,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