OSDN Git Service

travis: Test coverity
[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   - 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
37 addons:
38   coverity_scan:
39     project:
40       name: "01org/libva"
41       description: "Build submitted via Travis CI"
42     notification_email: sean.v.kelley@intel.com
43     build_command_prepend: "./autogen.sh; ./configure --prefix=/usr"
44     build_command:  "make -j4"
45     branch_pattern: master
46
47 script:
48         - ./autogen.sh
49         - ./configure --prefix=/usr
50         - make -j4 ; sudo make install
51         - make check
52
53 after_success:
54         - coveralls --exclude lib --exclude tests --gcov-options '\-lp'
55
56 notifications:
57 # Emails are sent to the committer's git-configured email address by default,
58 # but only if they have access to the repository.  To enable Travis on your
59 # public fork of Caffe, just go to travis-ci.org and flip the switch on for
60 # your Caffe fork.  To configure your git email address, use:
61 #     git config --global user.email me@example.com
62   email:
63     on_success: always
64     on_failure: always
65
66 # Slack notifications
67 #
68   slack: intel-media:p0wZO3fWJ1ouSsF0RNKbOl5G
69
70 # IRC notifications disabled by default.
71 # Uncomment next 5 lines to send notifications to chat.freenode.net#caffe
72 #   irc:
73 #     channels:
74 #       - "chat.freenode.net#intel-media"
75 #     template:
76 #       - "%{repository}/%{branch} (%{commit} - %{author}): %{message}"