Eric Anholt | 1c0ac19 | 2015-11-23 16:25:29 -0800 | [diff] [blame] | 1 | language: c |
| 2 | |
| 3 | sudo: false |
| 4 | |
| 5 | cache: |
| 6 | directories: |
| 7 | - $HOME/.ccache |
| 8 | |
| 9 | addons: |
| 10 | apt: |
| 11 | packages: |
| 12 | - libdrm-dev |
| 13 | - libudev-dev |
| 14 | - x11proto-xf86vidmode-dev |
| 15 | - libexpat1-dev |
| 16 | - libxcb-dri2-0-dev |
| 17 | - libx11-xcb-dev |
| 18 | - llvm-3.4-dev |
| 19 | |
| 20 | env: |
| 21 | global: |
| 22 | - XORG_RELEASES=http://xorg.freedesktop.org/releases/individual |
| 23 | - XCB_RELEASES=http://xcb.freedesktop.org/dist |
| 24 | - XORGMACROS_VERSION=util-macros-1.19.0 |
| 25 | - GLPROTO_VERSION=glproto-1.4.17 |
| 26 | - DRI2PROTO_VERSION=dri2proto-2.8 |
| 27 | - DRI3PROTO_VERSION=dri3proto-1.0 |
| 28 | - PRESENTPROTO_VERSION=presentproto-1.0 |
| 29 | - LIBPCIACCESS_VERSION=libpciaccess-0.13.4 |
| 30 | - LIBDRM_VERSION=libdrm-2.4.65 |
| 31 | - XCBPROTO_VERSION=xcb-proto-1.11 |
| 32 | - LIBXCB_VERSION=libxcb-1.11 |
| 33 | - LIBXSHMFENCE_VERSION=libxshmfence-1.2 |
| 34 | - PKG_CONFIG_PATH=$HOME/prefix/lib/pkgconfig |
| 35 | |
| 36 | install: |
| 37 | - export PATH="/usr/lib/ccache:$PATH" |
| 38 | - pip install --user mako |
| 39 | |
| 40 | # Install dependencies where we require specific versions (or where |
| 41 | # disallowed by Travis CI's package whitelisting). |
| 42 | |
| 43 | - wget $XORG_RELEASES/util/$XORGMACROS_VERSION.tar.bz2 |
| 44 | - tar -jxvf $XORGMACROS_VERSION.tar.bz2 |
| 45 | - (cd $XORGMACROS_VERSION && ./configure --prefix=$HOME/prefix && make install) |
| 46 | |
| 47 | - wget $XORG_RELEASES/proto/$GLPROTO_VERSION.tar.bz2 |
| 48 | - tar -jxvf $GLPROTO_VERSION.tar.bz2 |
| 49 | - (cd $GLPROTO_VERSION && ./configure --prefix=$HOME/prefix && make install) |
| 50 | |
| 51 | - wget $XORG_RELEASES/proto/$DRI2PROTO_VERSION.tar.bz2 |
| 52 | - tar -jxvf $DRI2PROTO_VERSION.tar.bz2 |
| 53 | - (cd $DRI2PROTO_VERSION && ./configure --prefix=$HOME/prefix && make install) |
| 54 | |
| 55 | - wget $XORG_RELEASES/proto/$DRI3PROTO_VERSION.tar.bz2 |
| 56 | - tar -jxvf $DRI3PROTO_VERSION.tar.bz2 |
| 57 | - (cd $DRI3PROTO_VERSION && ./configure --prefix=$HOME/prefix && make install) |
| 58 | |
| 59 | - wget $XORG_RELEASES/proto/$PRESENTPROTO_VERSION.tar.bz2 |
| 60 | - tar -jxvf $PRESENTPROTO_VERSION.tar.bz2 |
| 61 | - (cd $PRESENTPROTO_VERSION && ./configure --prefix=$HOME/prefix && make install) |
| 62 | |
| 63 | - wget $XCB_RELEASES/$XCBPROTO_VERSION.tar.bz2 |
| 64 | - tar -jxvf $XCBPROTO_VERSION.tar.bz2 |
| 65 | - (cd $XCBPROTO_VERSION && ./configure --prefix=$HOME/prefix && make install) |
| 66 | |
| 67 | - wget $XCB_RELEASES/$LIBXCB_VERSION.tar.bz2 |
| 68 | - tar -jxvf $LIBXCB_VERSION.tar.bz2 |
| 69 | - (cd $LIBXCB_VERSION && ./configure --prefix=$HOME/prefix && make install) |
| 70 | |
| 71 | - wget $XORG_RELEASES/lib/$LIBPCIACCESS_VERSION.tar.bz2 |
| 72 | - tar -jxvf $LIBPCIACCESS_VERSION.tar.bz2 |
| 73 | - (cd $LIBPCIACCESS_VERSION && ./configure --prefix=$HOME/prefix && make install) |
| 74 | |
| 75 | - wget http://dri.freedesktop.org/libdrm/$LIBDRM_VERSION.tar.bz2 |
| 76 | - tar -jxvf $LIBDRM_VERSION.tar.bz2 |
| 77 | - (cd $LIBDRM_VERSION && ./configure --prefix=$HOME/prefix && make install) |
| 78 | |
| 79 | - wget $XORG_RELEASES/lib/$LIBXSHMFENCE_VERSION.tar.bz2 |
| 80 | - tar -jxvf $LIBXSHMFENCE_VERSION.tar.bz2 |
| 81 | - (cd $LIBXSHMFENCE_VERSION && ./configure --prefix=$HOME/prefix && make install) |
| 82 | |
| 83 | # Disabled LLVM (and therefore r300 and r600) because the build fails |
| 84 | # with "undefined reference to `clock_gettime'" and "undefined |
| 85 | # reference to `setupterm'" in llvmpipe. |
| 86 | script: |
| 87 | - ./autogen.sh --enable-debug |
| 88 | --disable-gallium-llvm |
| 89 | --with-egl-platforms=x11,drm |
| 90 | --with-dri-drivers=i915,i965,radeon,r200,swrast,nouveau |
| 91 | --with-gallium-drivers=svga,swrast,vc4,virgl |
| 92 | - make && make check |