Travis: use tarballs instead of git-clone

This should improve performance and make it more reliable in general
(also in terms of timeouts when cloning).
This commit is contained in:
Daniel Hahler 2015-06-10 18:06:02 +02:00
parent 84d764f3ba
commit f9a3b97b50
1 changed files with 12 additions and 21 deletions

View File

@ -26,44 +26,35 @@ install:
# For missing libxcb-cursor-dev. # For missing libxcb-cursor-dev.
- sudo apt-get install -qq xutils-dev libxcb-render-util0-dev gperf - sudo apt-get install -qq xutils-dev libxcb-render-util0-dev gperf
- git clone --recursive --depth 1 git://anongit.freedesktop.org/xcb/util-cursor - wget http://xcb.freedesktop.org/dist/xcb-util-cursor-0.1.2.tar.gz
- cd util-cursor - tar xf xcb-util-cursor-0.1.2.tar.gz
- ./autogen.sh - cd xcb-util-cursor-0.1.2
- ./configure - ./configure
- sudo make install - sudo make install
- sudo ldconfig - sudo ldconfig
- cd .. - cd ..
# For xcb-proto >= 1.11, required by libxcb. # For xcb-proto >= 1.11, required by libxcb.
- git clone --recursive --depth 1 git://anongit.freedesktop.org/xcb/proto - wget http://xcb.freedesktop.org/dist/xcb-proto-1.11.tar.bz2
- cd proto - tar xf xcb-proto-1.11.tar.bz2
- ./autogen.sh - cd xcb-proto-1.11
- ./configure - ./configure
- sudo make install - sudo make install
- cd .. - cd ..
# Updated utils (xorg-macros) for manually building libxcb-xkb-dev.
- git clone --recursive --depth 1 git://anongit.freedesktop.org/xorg/util/macros
- cd macros
- ./autogen.sh
- ./configure
- sudo make install
- export PKG_CONFIG_PATH=/usr/local/share/pkgconfig:$PKG_CONFIG_PATH
- export ACLOCAL_PATH=/usr/local/share/aclocal:$ACLOCAL_PATH
- cd ..
# For missing libxcb-xkb-dev. # For missing libxcb-xkb-dev.
- git clone --recursive --depth 1 git://anongit.freedesktop.org/xcb/libxcb - wget http://xcb.freedesktop.org/dist/libxcb-1.11.tar.bz2
- cd libxcb - tar xf libxcb-1.11.tar.bz2
- ./autogen.sh - cd libxcb-1.11
- ./configure - ./configure
- sudo make install - sudo make install
- sudo ldconfig - sudo ldconfig
- cd .. - cd ..
# For missing libxcbcommon-dev/libxcbcommon-x11-dev (PR #227). # For missing libxcbcommon-dev/libxcbcommon-x11-dev (PR #227).
- git clone --recursive --depth 1 https://github.com/xkbcommon/libxkbcommon.git - wget http://xkbcommon.org/download/libxkbcommon-0.5.0.tar.xz
- cd libxkbcommon - tar xf libxkbcommon-0.5.0.tar.xz
- ./autogen.sh - cd libxkbcommon-0.5.0
- ./configure - ./configure
- sudo make install - sudo make install
- sudo ldconfig - sudo ldconfig