mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-06-12 04:29:29 +00:00
Add CI for SDL1 and SDL2.
Signed-off-by: Ricky Zhang <rickyzhang@gmail.com>
This commit is contained in:
parent
dc8bb7e2a3
commit
9ef2f87adb
30
.travis.yml
30
.travis.yml
|
@ -3,18 +3,36 @@ language: cpp
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: linux
|
- os: linux
|
||||||
dist: trusty
|
dist: bionic
|
||||||
sudo: required
|
sudo: required
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
|
env :
|
||||||
|
- SDL_MAJOR_VERSION=1
|
||||||
|
- os: linux
|
||||||
|
dist: bionic
|
||||||
|
sudo: required
|
||||||
|
compiler: gcc
|
||||||
|
env :
|
||||||
|
- SDL_MAJOR_VERSION=2
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
- libsdl1.2-dev
|
- libsdl1.2-dev
|
||||||
- libgtk2.0-dev
|
- libgtk2.0-dev
|
||||||
|
- libsdl2-dev
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- cd BasiliskII/src/Unix
|
- ERR_CODE=0
|
||||||
- NO_CONFIGURE=1 ./autogen.sh
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
||||||
- ./configure --enable-sdl-video --enable-sdl-audio --disable-vosf --disable-jit-compiler --with-x --with-gtk --with-mon
|
cd BasiliskII/src/Unix;
|
||||||
- make -j 4
|
NO_CONFIGURE=1 ./autogen.sh;
|
||||||
|
if [[ $SDL_MAJOR_VERSION == *"1"* ]]; then
|
||||||
|
./configure --enable-sdl-video --enable-sdl-audio --disable-vosf --disable-jit-compiler --with-x --with-gtk --with-mon;
|
||||||
|
make -j 4 || ERR_CODE=$?;
|
||||||
|
else
|
||||||
|
./configure --enable-sdl-video --enable-sdl-audio --disable-vosf --disable-jit-compiler --with-x --with-gtk --with-mon --with-sdl2;
|
||||||
|
make -j 4 || ERR_CODE=$?;
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
- (exit $ERR_CODE)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user