-
Notifications
You must be signed in to change notification settings - Fork 57
/
.travis.yml
69 lines (61 loc) · 1.35 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
62
63
64
65
66
67
68
69
sudo: required
dist: trusty
language: d
os:
- linux
- osx
env:
- ARCH=x86_64 CONFIG=default
- ARCH=x86_64 CONFIG=minimal
- ARCH=x86_64 CONFIG=console
- ARCH=x86 CONFIG=default
- ARCH=x86 CONFIG=minimal
- ARCH=x86 CONFIG=console
d:
- dmd
- dmd-beta
- ldc
# No-one cares about OS X x86
matrix:
exclude:
- os: osx
env: ARCH=x86 CONFIG=default
- os: osx
env: ARCH=x86 CONFIG=minimal
- os: osx
env: ARCH=x86 CONFIG=console
- os: osx
env: ARCH=x86_64 CONFIG=console
- os: osx
env: ARCH=x86_64 CONFIG=minimal
# Sort out packages
install:
- |
if [ $TRAVIS_OS_NAME == osx ]
then
brew update
brew install sdl2
elif [ $TRAVIS_OS_NAME == linux ]
then
if [ $ARCH == x86 ]
then
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install -y gcc-multilib libgl1-mesa-glx-lts-utopic:i386 libfreetype6:i386 libsdl2-2.0-0:i386 zlib1g-dev:i386
else
sudo apt-get update
sudo apt-get install -y libfreetype6 libsdl2-2.0-0 zlib1g-dev
fi
fi
#libgl1-mesa-glx:i386
# Start a virtual x-server.
before_script:
- |
if [ $TRAVIS_OS_NAME == linux ]
then
export DISPLAY=:99.0
sh -e /etc/init.d/xvfb start
sleep 3
fi
script:
- dub test --compiler=${DC} --arch=${ARCH} --config=${CONFIG}