OSDN Git Service

Add the configure attributes of EncMaxRefs for GEN9 HEVC encoder
[android-x86/hardware-intel-common-vaapi.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: "jDJjgRpAzAUYfnYhE5Y01OZcIiuAvrG/M14VuESjnoOWja/vkFa/Eg2t4ZY/rQXIGkMhCdjXttdQWLgy+00htVtGQmCAM42FnpeCak1Ln4qnIbudThAgRkS77kJLaSNfW+DahKP0RKv/GtNf3p0WwLBBA2ji3h7Mcz1kMz6UhTE="
14
15 before_install:
16   - test "${TRAVIS_BRANCH}" != 'coverity_scan' -o "${TRAVIS_JOB_NUMBER##*.}" = '1' || exit 0
17   - echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
18   - pip install --user cpp-coveralls
19   - sudo apt-get -qq update
20   - sudo apt-get install -y build-essential
21   - sudo apt-get install -y autoconf
22   - sudo apt-get install -y automake
23   - sudo apt-get install -y libtool
24   - sudo apt-get install -y m4 
25   - sudo apt-get install -y lcov
26   - sudo apt-get install -y perl
27   - sudo apt-get install -y pkg-config
28   - sudo apt-get install -y libdrm-dev
29   - sudo apt-get install -y autoconf
30   - sudo apt-get install -y libegl1-mesa-dev
31   - sudo apt-get install -y libgl1-mesa-dev
32   - sudo apt-get install -y libwayland-dev
33   - sudo apt-get install -y libx11-dev
34   - sudo apt-get install -y libxext-dev
35   - sudo apt-get install -y libxfixes-dev
36   - sudo apt-get install -y intel-gpu-tools
37  
38 install:
39   - git clone https://github.com/01org/libva.git
40   - (cd libva && ./autogen.sh && ./configure --prefix=/usr && sudo make install)
41
42 addons:
43   coverity_scan:
44     project:
45       name: "01org/intel-vaapi-driver"
46       description: "Build submitted via Travis CI"
47     notification_email: intel-media-security@lists.01.org
48     build_command_prepend: "./autogen.sh; ./configure --prefix=/usr"
49     build_command:   "make -j4"
50     branch_pattern: coverity_scan
51
52 script:
53   - if [[ "${COVERITY_SCAN_BRANCH}" == 1 ]];
54       then
55         echo "Don't build on coverty_scan branch.";
56         exit 0;
57     fi
58   - ./autogen.sh
59   - ./configure --prefix=/usr
60   - make -j4 ; sudo make install
61   - make check
62
63 after_success:
64         - coveralls --exclude lib --exclude tests --gcov-options '\-lp'
65
66 notifications:
67 # Emails are sent to the committer's git-configured email address by default,
68 # but only if they have access to the repository.  To enable Travis on your
69 # public project, just go to travis-ci.org and flip the switch on for
70 # your project.  To configure your git email address, use:
71 #     git config --global user.email me@example.com
72   email:
73     on_success: always
74     on_failure: always
75
76 # Slack notifications
77 #
78   slack: intel-media:p0wZO3fWJ1ouSsF0RNKbOl5G
79
80 # IRC notifications disabled by default.
81 # Uncomment next 5 lines to send notifications to chat.freenode.net#caffe
82 #   irc:
83 #     channels:
84 #       - "chat.freenode.net#intel-media"
85 #     template:
86 #       - "%{repository}/%{branch} (%{commit} - %{author}): %{message}"