visualboyadvance-m/.travis.yml

104 lines
3.3 KiB
YAML
Raw Normal View History

---
2019-10-07 01:51:25 +00:00
cache: ccache
dist: xenial
2019-10-07 01:51:25 +00:00
language: cpp
services: xvfb
sudo: required
matrix:
fast_finish: true
include:
- env: BUILD_ENV=ubuntu-bionic XVFB_RUN=1
dist: bionic
- env: BUILD_ENV=utf8 XVFB_RUN=1
dist: bionic
- env: BUILD_ENV=nostl XVFB_RUN=1
dist: bionic
2019-10-07 01:51:25 +00:00
- env: BUILD_ENV=ubuntu-trusty XVFB_RUN=1
dist: trusty
- env: BUILD_ENV=ubuntu-xenial XVFB_RUN=1
- env: BUILD_ENV=ubuntu-xenial-minimal INSTALLDEPS_ARGS="--no-openal --no-ffmpeg" XVFB_RUN=1
- env: BUILD_ENV=ubuntu-xenial XVFB_RUN=1 CC=clang CXX=clang++
- env: BUILD_ENV=mingw-w64
- env: BUILD_ENV=mingw-w32
- env: BUILD_ENV=libretro
2019-10-07 14:33:08 +00:00
- env: BUILD_ENV=libretro CC=clang CXX=clang++
- env: BUILD_ENV=mac
os: osx
osx_image: xcode12
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
PATH="$PATH:/usr/lib/mxe/usr/bin"
2019-10-07 01:51:25 +00:00
;;
mingw-w32 )
ARG=MinGW-w64-i686
CMAKE=/usr/lib/mxe/usr/bin/i686-w64-mingw32.static-cmake
PATH="$PATH:/usr/lib/mxe/usr/bin"
2019-10-07 01:51:25 +00:00
;;
* )
CMAKE=cmake
;;
esac
- |
if [ "$BUILD_ENV" != libretro ]; then
./installdeps $INSTALLDEPS_ARGS $ARG
2019-10-07 16:20:03 +00:00
DIR=build
else
DIR=src/libretro
2019-10-07 01:51:25 +00:00
fi
before_script:
- |
if [ -n "$ENABLE_SDL" ]; then
CMAKE_ARGS="$CMAKE_ARGS -DENABLE_SDL=ON"
fi
case "$BUILD_ENV" in
utf8|nostl)
sudo apt-get -y install stow libwxgtk3.0-gtk3-dev
(
cd /
sudo curl -LO 'http://cachemiss.com/files/wxWidgets-gtk3-'"$BUILD_ENV"'-3.0.5.tar.gz'
sudo tar zxvf wxWidgets-gtk3-"$BUILD_ENV"-3.0.5.tar.gz
cd /usr/local/stow
sudo stow wxWidgets-gtk3-"$BUILD_ENV"-3.0.5
)
export LD_LIBRARY_PATH=/usr/local/lib
CMAKE_ARGS="$CMAKE_ARGS -DwxWidgets_CONFIG_EXECUTABLE=/usr/local/bin/wx-config -DWXRC=/usr/local/bin/wxrc"
;;
esac
2019-10-07 01:51:25 +00:00
script:
2019-10-07 16:20:03 +00:00
- mkdir -p -- "$DIR"
- cd -- "$DIR"
2019-10-07 01:51:25 +00:00
- if [ "$BUILD_ENV" != libretro ]; then $CMAKE $CMAKE_ARGS ..; fi
- if [ "$BUILD_ENV" != libretro ]; then ninja; else make; fi
- if [ "$BUILD_ENV" != libretro ]; then DESTDIR=/tmp/VBAM ninja install; fi
2019-10-07 01:51:25 +00:00
- |
2019-10-07 23:22:04 +00:00
if [ "$BUILD_ENV" = mac ]; then
./$PRGNAM.app/Contents/MacOS/$PRGNAM --help
elif [ -n "$XVFB_RUN" ]; then
xvfb-run -a ./$PRGNAM --help
2019-10-07 01:51:25 +00:00
fi
ctest -V
2019-10-07 01:51:25 +00:00
env:
global:
- CMAKE_ARGS="-G Ninja"
2019-10-07 01:51:25 +00:00
- ENABLE_SDL=1
- MAKEFLAGS="-j2"
- PRGNAM=visualboyadvance-m
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