-
Notifications
You must be signed in to change notification settings - Fork 431
/
.travis.yml
61 lines (55 loc) · 1.38 KB
/
.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
language: c
matrix:
include:
- os: linux
compiler: gcc
dist: trusty
sudo: false
- os: osx
compiler: clang
addons:
apt:
packages:
- autopoint
- intltool
# DRM
- libdrm-dev
# RANDR
- libxcb1-dev
- libxcb-randr0-dev
# VidMode
- libx11-dev
- libxxf86vm-dev
# GeoClue2
- libglib2.0-dev
# GUI
- python3
before_install: |
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
brew update
brew install gettext
brew link --force gettext
brew install intltool
fi
install:
- ./bootstrap
- mkdir "$TRAVIS_BUILD_DIR/root"
- |
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
./configure --prefix="$TRAVIS_BUILD_DIR/root" --enable-drm --enable-vidmode --enable-randr --enable-geoclue2 --enable-gui --enable-apparmor
elif [ "$TRAVIS_OS_NAME" == "osx" ]; then
./configure --prefix="$TRAVIS_BUILD_DIR/root" --enable-corelocation --enable-quartz --enable-gui
fi
- make -j2 install
- make -j2 distcheck
script:
- |
"$TRAVIS_BUILD_DIR"/root/bin/redshift -l 12:-34 -pv
- |
"$TRAVIS_BUILD_DIR"/root/bin/redshift -l 12:-34 -m dummy -vo
- |
echo -e "[redshift]\ndawn-time=6:30\ndusk-time=18:00-19:30" > time.config
- |
"$TRAVIS_BUILD_DIR"/root/bin/redshift -c time.config -pv
- |
"$TRAVIS_BUILD_DIR"/root/bin/redshift -c time.config -m dummy -vo