OSDN Git Service

travis: Add hooks for slack
[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
12 before_install:
13   - pip install --user cpp-coveralls
14   - sudo apt-get -qq update
15   - sudo apt-get install -y build-essential
16   - sudo apt-get install -y autoconf
17   - sudo apt-get install -y automake
18   - sudo apt-get install -y libtool
19   - sudo apt-get install -y m4 
20   - sudo apt-get install -y lcov
21   - sudo apt-get install -y perl
22   - sudo apt-get install -y pkg-config
23   - sudo apt-get install -y libdrm-dev
24   - sudo apt-get install -y autoconf
25   - sudo apt-get install -y libegl1-mesa-dev
26   - sudo apt-get install -y libgl1-mesa-dev
27   - sudo apt-get install -y libwayland-dev
28   - sudo apt-get install -y libx11-dev
29   - sudo apt-get install -y libxext-dev
30   - sudo apt-get install -y libxfixes-dev
31   
32 script:
33         - ./autogen.sh
34         - ./configure --prefix=/usr
35         - make -j4 ; sudo make install
36         - make check
37
38 after_success:
39         - coveralls --exclude lib --exclude tests --gcov-options '\-lp'
40
41 notifications:
42 # Emails are sent to the committer's git-configured email address by default,
43 # but only if they have access to the repository.  To enable Travis on your
44 # public fork of Caffe, just go to travis-ci.org and flip the switch on for
45 # your Caffe fork.  To configure your git email address, use:
46 #     git config --global user.email me@example.com
47   email:
48     on_success: always
49     on_failure: always
50
51 # Slack notifications
52 #
53   slack: intel-media:p0wZO3fWJ1ouSsF0RNKbOl5G
54
55 # IRC notifications disabled by default.
56 # Uncomment next 5 lines to send notifications to chat.freenode.net#caffe
57 #   irc:
58 #     channels:
59 #       - "chat.freenode.net#intel-media"
60 #     template:
61 #       - "%{repository}/%{branch} (%{commit} - %{author}): %{message}"