forked from conformal/spectrwm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
26 lines (22 loc) · 799 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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 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
# 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