OSDN Git Service

gralloc0_register_buffer: initialize gralloc0 when needed
[android-x86/external-minigbm.git] / .travis.yml
1 language: c++
2 sudo: required
3 dist: trusty
4 install:
5 - sudo apt-get update
6 - sudo apt-get install automake
7 - sudo apt-get install autoconf
8 - sudo apt-get install libtool
9 - sudo apt-get install xutils-dev
10 - sudo apt-get install libpciaccess-dev
11 - sudo apt-get install python-mako
12 - sudo dpkg -s python-mako
13 - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
14 - sudo apt-get update
15 - sudo apt-get install gcc-4.9
16 - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 50
17 - sudo apt-get install g++-4.9
18 - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 50
19 script:
20 - export HWC_BUILD_DIR=/tmp/
21 - export WLD=/tmp/hwc-install
22 - export LD_LIBRARY_PATH=$WLD/lib
23 - export PKG_CONFIG_PATH=$WLD/lib/pkgconfig/:$WLD/share/pkgconfig
24 - export PATH=$WLD/bin:$PATH
25 - export ACLOCAL_PATH=$WLD/share/aclocal
26 - export ACLOCAL="aclocal -I $ACLOCAL_PATH"
27 - export DRV_I915=1
28 - tar -xvf travisci/resources/minigbm-install.tar.bz2 -C $HWC_BUILD_DIR
29 - mkdir -p $WLD/share/aclocal
30 - git clone https://github.com/intel/external-libdrm.git /tmp/libdrm
31 - pushd /tmp/libdrm
32 - ./autogen.sh --disable-radeon --disable-nouveau --disable-amdgpu --enable-udev --enable-libkms --prefix=$WLD
33 - make -j5 && make install
34 - popd
35 - export DRV_I915=1
36 - make CFLAGS=-DDRV_I915=1 -j5
37 branches:
38   only:
39   - master