Skip to content
Permalink
Browse files

[travis] Fix build failure. Ubuntu Xenial is missing libxcb-xinput-dev.

For now, disable xinput support when build testing.
  • Loading branch information...
LordReg authored and marcopeereboom committed Jan 21, 2019
1 parent 08f6632 commit f3d7a4d5e8a349908604ea98fd28addf6f6d1c57
Showing with 17 additions and 5 deletions.
  1. +17 −5 .travis.yml
@@ -1,14 +1,26 @@
language: c

matrix:
include:
- os: linux
dist: xenial
- os: osx

addons:
apt:
update: true

before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo apt-get update;
sudo apt-get install -y xorg libxft2-dev libxcursor-dev libxrandr-dev libxcb-icccm4-dev;
fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo apt-get install -y libx11-dev libx11-xcb-dev libxcursor-dev libxrandr-dev libxt-dev libxtst-dev libxcb1-dev libxcb-icccm4-dev libxcb-keysyms1-dev libxcb-randr0-dev libxcb-util0-dev libxcb-xtest0-dev libxft-dev libxcb-xfixes0-dev libfreetype6-dev;
fi

script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cd linux && make; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
# xenial doesn't include libxcb-xinput-dev, disable for now.
sed -i 's/#if defined(__linux__) || defined(__FreeBSD__)/#if 0/' spectrwm.c;
sed -i 's/xcb-xinput //g' linux/Makefile;
cd linux;
make;
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cd osx && make; fi

0 comments on commit f3d7a4d

Please sign in to comment.
You can’t perform that action at this time.