2018-06-27 02:15:22 +00:00
|
|
|
---
|
2019-10-07 01:51:25 +00:00
|
|
|
cache: ccache
|
|
|
|
dist: trusty
|
|
|
|
language: cpp
|
|
|
|
services: xvfb
|
2018-06-27 02:15:22 +00:00
|
|
|
sudo: required
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
|
|
|
include:
|
2019-08-31 23:46:25 +00:00
|
|
|
- env: BUILD_ENV=ubuntu-bionic
|
|
|
|
dist: bionic
|
2019-10-07 01:51:25 +00:00
|
|
|
# xvfb fails on bionic for some reason
|
2019-08-31 23:46:25 +00:00
|
|
|
- env: BUILD_ENV=ubuntu-xenial
|
|
|
|
dist: xenial
|
2019-10-07 01:51:25 +00:00
|
|
|
# xvfb fails on xenial too
|
|
|
|
- env: BUILD_ENV=ubuntu-trusty XVFB_RUN=1
|
2019-03-09 00:56:46 +00:00
|
|
|
- env: BUILD_ENV=mingw-w64
|
|
|
|
- env: BUILD_ENV=mingw-w32
|
2018-06-29 03:51:13 +00:00
|
|
|
- env: BUILD_ENV=libretro
|
2018-06-27 02:15:22 +00:00
|
|
|
- env: BUILD_ENV=mac
|
|
|
|
os: osx
|
2019-05-29 23:26:46 +00:00
|
|
|
osx_image: xcode10.2
|
2019-10-07 01:51:25 +00:00
|
|
|
install: export PATH="/usr/local/opt/ccache/libexec:$PATH"
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
- |
|
|
|
|
case "$BUILD_ENV" in
|
|
|
|
mingw-w64 )
|
|
|
|
ARG=MinGW-w64-x86_64
|
|
|
|
CMAKE=/usr/lib/mxe/usr/bin/x86_64-w64-mingw32.static-cmake
|
|
|
|
;;
|
|
|
|
mingw-w32 )
|
|
|
|
ARG=MinGW-w64-i686
|
|
|
|
CMAKE=/usr/lib/mxe/usr/bin/i686-w64-mingw32.static-cmake
|
|
|
|
;;
|
|
|
|
* )
|
|
|
|
CMAKE=cmake
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
- |
|
|
|
|
if [ "$BUILD_ENV" != libretro ]; then
|
|
|
|
./installdeps $ARG
|
|
|
|
fi
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- |
|
|
|
|
if [ -n "$ENABLE_SDL" ]; then
|
|
|
|
CMAKE_ARGS="$CMAKE_ARGS -DENABLE_SDL=ON"
|
|
|
|
fi
|
|
|
|
- |
|
|
|
|
if [ "$BUILD_ENV" = libretro ]; then
|
|
|
|
cd src/libretro
|
|
|
|
else
|
|
|
|
mkdir -p build
|
|
|
|
cd build
|
|
|
|
fi
|
|
|
|
|
|
|
|
script:
|
|
|
|
- if [ "$BUILD_ENV" != libretro ]; then $CMAKE $CMAKE_ARGS ..; fi
|
|
|
|
- make
|
|
|
|
- |
|
|
|
|
if [ -n "$XVFB_RUN" ]; then
|
|
|
|
xvfb-run ./visualboyadvance-m --help
|
|
|
|
#elif [ "$BUILD_ENV" = mac ]; then
|
|
|
|
# - ./visualboyadvance-m.app/Contents/MacOS/visualboyadvance-m --help
|
|
|
|
fi
|
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- CMAKE_ARGS=""
|
|
|
|
- ENABLE_SDL=1
|
|
|
|
- MAKEFLAGS="-j2"
|
2018-12-05 22:38:54 +00:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
webhooks:
|
|
|
|
urls:
|
|
|
|
- https://webhooks.gitter.im/e/b273e1f74f164855d115
|
|
|
|
on_success: change # options: [always|never|change] default: always
|
|
|
|
on_failure: always # options: [always|never|change] default: always
|
|
|
|
on_start: never # options: [always|never|change] default: always
|