forked from cebix/macemu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
123 lines (119 loc) · 3.24 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
language: cpp
matrix:
include:
- os: linux
dist: bionic
sudo: required
compiler: gcc
env :
- WITH_SDL=1
- SDL_MAJOR_VERSION=1
- ADDRESSING_MODE=direct
- os: linux
dist: bionic
sudo: required
compiler: gcc
env :
- WITH_SDL=1
- SDL_MAJOR_VERSION=1
- ADDRESSING_MODE=banks
- os: linux
dist: bionic
sudo: required
compiler: gcc
env :
- WITH_SDL=1
- SDL_MAJOR_VERSION=2
- ADDRESSING_MODE=direct
- os: linux
dist: bionic
sudo: required
compiler: gcc
env :
- WITH_SDL=1
- SDL_MAJOR_VERSION=2
- ADDRESSING_MODE=banks
- os: linux
dist: bionic
sudo: required
compiler: gcc
env :
- WITH_SDL=0
- ADDRESSING_MODE=direct
- os: linux
dist: bionic
sudo: required
compiler: gcc
env :
- WITH_SDL=0
- ADDRESSING_MODE=banks
- os: osx
compiler: clang
osx_image: xcode12
env :
- WITH_SDL=0
- os: osx
compiler: clang
osx_image: xcode12
env :
- WITH_SDL=1
- os: linux
arch: arm64
dist: bionic
sudo: required
compiler: gcc
env :
- WITH_SDL=1
- SDL_MAJOR_VERSION=1
- CPU_ARCH=arm64
- os: linux
arch: arm64
dist: bionic
sudo: required
compiler: gcc
env :
- WITH_SDL=1
- SDL_MAJOR_VERSION=2
- CPU_ARCH=arm64
addons:
apt:
packages:
- libsdl1.2-dev
- libgtk2.0-dev
- libsdl2-dev
homebrew:
packages:
- sdl2
- autoconf
- make
script:
- ERR_CODE=0
- cd BasiliskII/src/Unix
- NO_CONFIGURE=1 ./autogen.sh
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
if [[ $WITH_SDL == *"1"* ]]; then
if [[ $SDL_MAJOR_VERSION == *"1"* ]]; then
if [[ $CPU_ARCH == *"arm64"* ]]; then
./configure --enable-sdl-video --enable-sdl-audio --disable-vosf --disable-jit-compiler --with-x --with-gtk --with-mon;
else
./configure --enable-sdl-video --enable-sdl-audio --disable-vosf --disable-jit-compiler --with-x --with-gtk --with-mon --enable-addressing=$ADDRESSING_MODE;
fi
else
if [[ $CPU_ARCH == *"arm64"* ]]; then
./configure --enable-sdl-video --enable-sdl-audio --disable-vosf --disable-jit-compiler --with-x --with-gtk --with-mon --with-sdl2;
else
./configure --enable-sdl-video --enable-sdl-audio --disable-vosf --disable-jit-compiler --with-x --with-gtk --with-mon --with-sdl2 --enable-addressing=$ADDRESSING_MODE;
fi
fi
else
./configure --disable-jit-compiler --with-x --with-gtk --with-mon --enable-addressing=$ADDRESSING_MODE;
fi
else
if [[ $WITH_SDL == *"1"* ]]; then
./configure --enable-sdl-video --enable-sdl-audio --disable-vosf --disable-jit-compiler --with-gtk=no --with-mon --with-sdl2 --enable-addressing=banks;
else
./configure --disable-vosf --disable-jit-compiler --with-gtk=no --with-mon --enable-addressing=banks;
fi
fi
- make -j 4 || ERR_CODE=$?;
- (exit $ERR_CODE)