forked from OpenDUNE/OpenDUNE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (42 loc) · 1.41 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
language: c
os:
- linux
- osx
addons:
apt:
packages:
# packages list: https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise
- gcc-mingw-w64-i686
- dos2unix
- libsdl1.2-dev
- libsdl-image1.2-dev
- libsdl2-dev
- libsdl2-image-dev
# container-based builds
sudo: false
env:
- 'SDLVERSION=1'
- 'SDLVERSION=2'
- 'CROSS=mingw'
matrix:
exclude:
- os: linux
env: CROSS=mingw
compiler: clang
- os: osx
env: CROSS=mingw
compiler:
- gcc
- clang
before_install:
- 'if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update > /dev/null ; fi'
- 'if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "$SDLVERSION" = "1" ] ; then brew install sdl sdl_image ; fi'
- 'if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "$SDLVERSION" = "2" ] ; then brew install sdl2 sdl2_image ; fi'
- 'if [ "$CROSS" = "mingw" ] ; then export CC="i686-w64-mingw32-gcc" ; fi'
script:
- 'cd $TRAVIS_BUILD_DIR'
- 'if [ "$CROSS" = "mingw" ] ; then ./configure --prefix-dir=${HOME} --os=MINGW --without-asound --without-oss --without-munt --without-sdl --without-sdl2 --without-pulse ; elif [ "$SDLVERSION" = "1" ] ; then ./configure --prefix-dir=${HOME} --without-sdl2 ; else ./configure --prefix-dir=${HOME} ; fi'
- 'make -j3'
- 'make bundle_zip'
- 'if [ "$TRAVIS_OS_NAME" = "osx" ]; then make bundle_dmg ; fi'
- 'if [ "$TRAVIS_OS_NAME" = "linux" ] && [ -z "$CROSS" ] ; then make install ; fi'