Blame .travis.yml

Packit Service 9402ce
dist: xenial
Packit Service 9402ce
sudo: required
Packit Service 9402ce
Packit Service 9402ce
language: c
Packit Service 9402ce
compiler: gcc
Packit Service 9402ce
os: linux
Packit Service 9402ce
Packit Service 9402ce
env:
Packit Service 9402ce
  global:
Packit Service 9402ce
    - NUM_THREADS=4
Packit Service 9402ce
    # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
Packit Service 9402ce
    #   via the "travis encrypt" command using the project repo's public key
Packit Service 9402ce
    - secure: "Eu+ys+LW614J1wU1+i2qpfbSq9gFPvPq09XBgkK2hkDIEuouOX+G4ydpqc7Wg7+pv/P38KiUdbyoJtPxryvlwFYmuL/MEHPzjqVmxHuS0TpqwYE7Fh/44d/N9slGjD9Iv//pbabVrcrTptuJIRwH76GVsmec564uXd+yZGlR0c0="
Packit Service 9402ce
Packit Service 9402ce
Packit Service 9402ce
before_install:
Packit Service 9402ce
  - test "${TRAVIS_BRANCH}" != 'coverity_scan' -o "${TRAVIS_JOB_NUMBER##*.}" = '1' || exit 0
Packit Service 9402ce
  - echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
Packit Service 9402ce
  - |
Packit Service 9402ce
     sudo systemctl stop apt-daily.service &&
Packit Service 9402ce
     sudo systemctl kill --kill-who=all apt-daily.service &&
Packit Service 9402ce
     while ! (systemctl list-units --all apt-daily.service | fgrep -q dead) ; do
Packit Service 9402ce
       sleep 1
Packit Service 9402ce
     done
Packit Service 9402ce
  - pip install --user cpp-coveralls
Packit Service 9402ce
  - sudo apt-get -qq update
Packit Service 9402ce
  - sudo apt-get install -y build-essential
Packit Service 9402ce
  - sudo apt-get install -y autoconf
Packit Service 9402ce
  - sudo apt-get install -y automake
Packit Service 9402ce
  - sudo apt-get install -y libtool
Packit Service 9402ce
  - sudo apt-get install -y m4 
Packit Service 9402ce
  - sudo apt-get install -y lcov
Packit Service 9402ce
  - sudo apt-get install -y perl
Packit Service 9402ce
  - sudo apt-get install -y pkg-config
Packit Service 9402ce
  - sudo apt-get install -y libdrm-dev
Packit Service 9402ce
  - sudo apt-get install -y autoconf
Packit Service 9402ce
  - sudo apt-get install -y libegl1-mesa-dev
Packit Service 9402ce
  - sudo apt-get install -y libgl1-mesa-dev
Packit Service 9402ce
  - sudo apt-get install -y libwayland-dev
Packit Service 9402ce
  - sudo apt-get install -y libx11-dev
Packit Service 9402ce
  - sudo apt-get install -y libxext-dev
Packit Service 9402ce
  - sudo apt-get install -y libxfixes-dev
Packit Service 9402ce
Packit Service 9402ce
addons:
Packit Service 9402ce
  coverity_scan:
Packit Service 9402ce
    project:
Packit Service 9402ce
      name: "intel/libva"
Packit Service 9402ce
      description: "Build submitted via Travis CI"
Packit Service 9402ce
    notification_email: intel-media-security@lists.01.org
Packit Service 9402ce
    build_command_prepend: "./autogen.sh; ./configure --prefix=/usr"
Packit Service 9402ce
    build_command:  "make -j4"
Packit Service 9402ce
    branch_pattern: coverity_scan
Packit Service 9402ce
Packit Service 9402ce
script:
Packit Service 9402ce
  - if [[ "${COVERITY_SCAN_BRANCH}" == 1 ]];
Packit Service 9402ce
      then
Packit Service 9402ce
        echo "Don't build on coverty_scan branch.";
Packit Service 9402ce
        exit 0;
Packit Service 9402ce
    fi
Packit Service 9402ce
  - ./autogen.sh
Packit Service 9402ce
  - ./configure --prefix=/usr
Packit Service 9402ce
  - make -j4 ; sudo make install
Packit Service 9402ce
  - make check
Packit Service 9402ce
Packit Service 9402ce
after_success:
Packit Service 9402ce
        - coveralls --exclude lib --exclude tests --gcov-options '\-lp'
Packit Service 9402ce
Packit Service 9402ce
notifications:
Packit Service 9402ce
# Emails are sent to the committer's git-configured email address by default,
Packit Service 9402ce
# but only if they have access to the repository.  To enable Travis on your
Packit Service 9402ce
# public project, just go to travis-ci.org and flip the switch on for
Packit Service 9402ce
# your project.  To configure your git email address, use:
Packit Service 9402ce
#     git config --global user.email me@example.com
Packit Service 9402ce
  email:
Packit Service 9402ce
    on_success: always
Packit Service 9402ce
    on_failure: always
Packit Service 9402ce
Packit Service 9402ce
# Slack notifications
Packit Service 9402ce
#
Packit Service 9402ce
  slack: intel-media:p0wZO3fWJ1ouSsF0RNKbOl5G
Packit Service 9402ce
Packit Service 9402ce
# IRC notifications disabled by default.
Packit Service 9402ce
# Uncomment next 5 lines to send notifications to chat.freenode.net#caffe
Packit Service 9402ce
#   irc:
Packit Service 9402ce
#     channels:
Packit Service 9402ce
#       - "chat.freenode.net#intel-media"
Packit Service 9402ce
#     template:
Packit Service 9402ce
#       - "%{repository}/%{branch} (%{commit} - %{author}): %{message}"