OSDN Git Service

update NEWS for libva 2.4.0
[android-x86/hardware-intel-common-libva.git] / .travis.yml
1 dist: xenial
2 sudo: required
3
4 language: c
5 compiler: gcc
6 os: linux
7
8 env:
9   global:
10     - NUM_THREADS=4
11     # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
12     #   via the "travis encrypt" command using the project repo's public key
13     - secure: "Eu+ys+LW614J1wU1+i2qpfbSq9gFPvPq09XBgkK2hkDIEuouOX+G4ydpqc7Wg7+pv/P38KiUdbyoJtPxryvlwFYmuL/MEHPzjqVmxHuS0TpqwYE7Fh/44d/N9slGjD9Iv//pbabVrcrTptuJIRwH76GVsmec564uXd+yZGlR0c0="
14
15
16 before_install:
17   - test "${TRAVIS_BRANCH}" != 'coverity_scan' -o "${TRAVIS_JOB_NUMBER##*.}" = '1' || exit 0
18   - echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
19   - |
20      sudo systemctl stop apt-daily.service &&
21      sudo systemctl kill --kill-who=all apt-daily.service &&
22      while ! (systemctl list-units --all apt-daily.service | fgrep -q dead) ; do
23        sleep 1
24      done
25   - pip install --user cpp-coveralls
26   - sudo apt-get -qq update
27   - sudo apt-get install -y build-essential
28   - sudo apt-get install -y autoconf
29   - sudo apt-get install -y automake
30   - sudo apt-get install -y libtool
31   - sudo apt-get install -y m4 
32   - sudo apt-get install -y lcov
33   - sudo apt-get install -y perl
34   - sudo apt-get install -y pkg-config
35   - sudo apt-get install -y libdrm-dev
36   - sudo apt-get install -y autoconf
37   - sudo apt-get install -y libegl1-mesa-dev
38   - sudo apt-get install -y libgl1-mesa-dev
39   - sudo apt-get install -y libwayland-dev
40   - sudo apt-get install -y libx11-dev
41   - sudo apt-get install -y libxext-dev
42   - sudo apt-get install -y libxfixes-dev
43
44 addons:
45   coverity_scan:
46     project:
47       name: "intel/libva"
48       description: "Build submitted via Travis CI"
49     notification_email: intel-media-security@lists.01.org
50     build_command_prepend: "./autogen.sh; ./configure --prefix=/usr"
51     build_command:  "make -j4"
52     branch_pattern: coverity_scan
53
54 script:
55   - if [[ "${COVERITY_SCAN_BRANCH}" == 1 ]];
56       then
57         echo "Don't build on coverty_scan branch.";
58         exit 0;
59     fi
60   - ./autogen.sh
61   - ./configure --prefix=/usr
62   - make -j4 ; sudo make install
63   - make check
64
65 after_success:
66         - coveralls --exclude lib --exclude tests --gcov-options '\-lp'
67
68 notifications:
69 # Emails are sent to the committer's git-configured email address by default,
70 # but only if they have access to the repository.  To enable Travis on your
71 # public project, just go to travis-ci.org and flip the switch on for
72 # your project.  To configure your git email address, use:
73 #     git config --global user.email me@example.com
74   email:
75     on_success: always
76     on_failure: always
77
78 # Slack notifications
79 #
80   slack: intel-media:p0wZO3fWJ1ouSsF0RNKbOl5G
81
82 # IRC notifications disabled by default.
83 # Uncomment next 5 lines to send notifications to chat.freenode.net#caffe
84 #   irc:
85 #     channels:
86 #       - "chat.freenode.net#intel-media"
87 #     template:
88 #       - "%{repository}/%{branch} (%{commit} - %{author}): %{message}"