2016-09-06 00:42:17 +00:00
|
|
|
# Use 'generic' to be able to override CC/CXX for clang
|
|
|
|
language: generic
|
|
|
|
|
2019-04-21 21:25:14 +00:00
|
|
|
# Use a release with a longer normal LTS
|
|
|
|
dist: xenial
|
|
|
|
|
2016-09-06 00:42:17 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
2017-10-24 04:37:31 +00:00
|
|
|
- compiler: mingw-x86
|
2019-04-20 23:55:26 +00:00
|
|
|
addons: true
|
2019-01-11 09:48:50 +00:00
|
|
|
env: CROSS_COMPILE=i686-w64-mingw32- CFLAGS="-D_WIN32_WINNT=0x0501"
|
2019-04-20 20:11:28 +00:00
|
|
|
- compiler: mingw-x86
|
2019-04-20 23:55:26 +00:00
|
|
|
addons: true
|
2019-04-20 20:11:28 +00:00
|
|
|
env: C89_BUILD=1 CROSS_COMPILE=i686-w64-mingw32- CFLAGS="-D_WIN32_WINNT=0x0501"
|
|
|
|
- compiler: mingw-x86
|
2019-04-20 23:55:26 +00:00
|
|
|
addons: true
|
2019-04-20 20:11:28 +00:00
|
|
|
env: CXX_BUILD=1 CROSS_COMPILE=i686-w64-mingw32- CFLAGS="-D_WIN32_WINNT=0x0501"
|
2017-10-24 04:37:31 +00:00
|
|
|
- compiler: mingw-x64
|
2019-04-20 23:55:26 +00:00
|
|
|
addons: true
|
2019-01-11 09:48:50 +00:00
|
|
|
env: CROSS_COMPILE=x86_64-w64-mingw32- CFLAGS="-D_WIN32_WINNT=0x0501"
|
2019-04-20 20:11:28 +00:00
|
|
|
- compiler: mingw-x64
|
2019-04-20 23:55:26 +00:00
|
|
|
addons: true
|
2019-04-20 20:11:28 +00:00
|
|
|
env: C89_BUILD=1 CROSS_COMPILE=x86_64-w64-mingw32- CFLAGS="-D_WIN32_WINNT=0x0501"
|
|
|
|
- compiler: mingw-x64
|
2019-04-20 23:55:26 +00:00
|
|
|
addons: true
|
2019-04-20 20:11:28 +00:00
|
|
|
env: CXX_BUILD=1 CROSS_COMPILE=x86_64-w64-mingw32- CFLAGS="-D_WIN32_WINNT=0x0501"
|
2016-09-06 00:42:17 +00:00
|
|
|
- compiler: gcc
|
2019-01-19 16:21:31 +00:00
|
|
|
env: CC=gcc-8 CXX=g++-8
|
2019-04-20 20:11:28 +00:00
|
|
|
- compiler: gcc
|
|
|
|
env: C89_BUILD=1 CC=gcc-8 CXX=g++-8
|
|
|
|
- compiler: gcc
|
|
|
|
env: CXX_BUILD=1 CC=gcc-8 CXX=g++-8
|
2019-05-04 15:48:30 +00:00
|
|
|
- compiler: gcc
|
|
|
|
env: DISABLE_MENU=1 CC=gcc-8 CXX=g++-8
|
2019-05-10 21:47:36 +00:00
|
|
|
- compiler: gcc
|
|
|
|
env: ENABLE_GLES=1 CC=gcc-8 CXX=g++-8
|
2019-06-01 14:52:16 +00:00
|
|
|
- compiler: gcc
|
|
|
|
env: ENABLE_GLES=1 ENABLE_GLES3=1 CC=gcc-8 CXX=g++-8
|
2016-09-06 00:42:17 +00:00
|
|
|
- compiler: clang
|
2019-01-19 16:21:31 +00:00
|
|
|
env: CC=clang-6.0 CXX=clang++-6.0
|
2019-04-20 20:11:28 +00:00
|
|
|
- compiler: clang
|
|
|
|
env: C89_BUILD=1 CC=clang-6.0 CXX=clang++-6.0
|
|
|
|
- compiler: clang
|
|
|
|
env: CXX_BUILD=1 CC=clang-6.0 CXX=clang++-6.0
|
2019-06-07 17:57:19 +00:00
|
|
|
- os: osx
|
|
|
|
env: CC=clang CXX=clang++
|
2016-09-06 00:42:17 +00:00
|
|
|
- os: osx
|
2018-11-19 15:04:43 +00:00
|
|
|
osx_image: xcode8
|
2016-09-06 00:42:17 +00:00
|
|
|
script:
|
2019-01-17 15:08:58 +00:00
|
|
|
- xcodebuild -target RetroArch -configuration Release -project pkg/apple/RetroArch.xcodeproj
|
2018-08-31 17:49:44 +00:00
|
|
|
- os: osx
|
2019-01-22 07:07:39 +00:00
|
|
|
osx_image: xcode10.1
|
2018-08-31 17:49:44 +00:00
|
|
|
script:
|
2018-09-08 16:04:05 +00:00
|
|
|
- brew install --force-bottle qt5
|
2019-01-17 15:08:58 +00:00
|
|
|
- xcodebuild -target RetroArchQt -configuration Release -project pkg/apple/RetroArch_Metal.xcodeproj
|
2018-09-03 01:57:06 +00:00
|
|
|
deploy:
|
|
|
|
skip_cleanup: true
|
|
|
|
provider: script
|
2019-01-17 15:08:58 +00:00
|
|
|
script: bash travis_metal_deploy.sh
|
2018-09-03 01:57:06 +00:00
|
|
|
on:
|
|
|
|
branch: master
|
2016-09-06 00:42:17 +00:00
|
|
|
|
2019-04-20 19:33:04 +00:00
|
|
|
before_install:
|
|
|
|
- |
|
|
|
|
if [ "$CC" = gcc-8 ]; then
|
|
|
|
# Install a more recent gcc than the default
|
|
|
|
sudo apt-get install -y g++-8
|
|
|
|
elif [ "$CC" = clang-6.0 ]; then
|
|
|
|
# Install a more recent clang than the default
|
|
|
|
sudo apt-get install -y clang-6.0
|
2019-04-20 23:55:26 +00:00
|
|
|
elif [ "$CROSS_COMPILE" = i686-w64-mingw32- ]; then
|
2019-04-21 21:25:14 +00:00
|
|
|
sudo update-alternatives --set i686-w64-mingw32-g++ /usr/bin/i686-w64-mingw32-g++-posix
|
2019-04-20 23:55:26 +00:00
|
|
|
elif [ "$CROSS_COMPILE" = x86_64-w64-mingw32- ]; then
|
2019-04-21 21:25:14 +00:00
|
|
|
sudo update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix
|
2019-04-20 19:33:04 +00:00
|
|
|
fi
|
|
|
|
|
2016-09-06 00:42:17 +00:00
|
|
|
script:
|
2019-04-20 19:33:04 +00:00
|
|
|
- |
|
|
|
|
if [ -n "$CROSS_COMPILE" ]; then
|
2019-06-01 14:27:04 +00:00
|
|
|
ARGS="$ARGS --disable-d3d8 --disable-d3d9 --disable-d3d10 --disable-d3d11 --disable-d3d12"
|
2019-04-20 19:33:04 +00:00
|
|
|
fi
|
2019-05-04 15:48:30 +00:00
|
|
|
- |
|
|
|
|
if [ -n "$DISABLE_MENU" ]; then
|
|
|
|
ARGS="$ARGS --disable-menu"
|
|
|
|
fi
|
2019-05-10 21:47:36 +00:00
|
|
|
- |
|
|
|
|
if [ -n "$ENABLE_GLES" ]; then
|
|
|
|
ARGS="$ARGS --enable-opengles"
|
|
|
|
fi
|
|
|
|
- |
|
|
|
|
if [ -n "$ENABLE_GLES3" ]; then
|
|
|
|
ARGS="$ARGS --enable-opengles3"
|
|
|
|
fi
|
2019-05-04 15:38:10 +00:00
|
|
|
- ./configure $ARGS
|
2019-04-20 20:11:28 +00:00
|
|
|
- |
|
|
|
|
if [ -n "$C89_BUILD" ]; then
|
|
|
|
make C89_BUILD=1
|
|
|
|
elif [ -n "$CXX_BUILD" ]; then
|
|
|
|
make CXX_BUILD=1
|
|
|
|
else
|
|
|
|
make
|
|
|
|
fi
|
2016-09-06 00:42:17 +00:00
|
|
|
|
2016-09-17 15:26:13 +00:00
|
|
|
env:
|
|
|
|
global:
|
2019-05-04 15:38:10 +00:00
|
|
|
- ARGS=""
|
2017-10-19 17:18:25 +00:00
|
|
|
- MAKEFLAGS="-j2"
|
2016-09-17 16:59:24 +00:00
|
|
|
- secure: "qc91ReC3OlzSh2gFaSH6TYzC2qIQvgA2AZff6J13eaH8xijAhuMzttZ0rMQJ0DWCIhPeUb0kIzVyaGoe4MwPALzpw1C1AznIWiZJ53HN+hWCOcS/af7YVPk6HPySnwqrS+Wv3AIIvIKFV2mxv21F/JbT/N+pArlRrp904Xj+KPo="
|
2016-09-06 00:42:17 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
2019-01-19 16:21:31 +00:00
|
|
|
- libsdl2-dev
|
2017-11-29 04:16:38 +00:00
|
|
|
- libusb-1.0-0-dev
|
2019-01-19 16:21:31 +00:00
|
|
|
- qtbase5-dev
|
|
|
|
- qtdeclarative5-dev
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
2019-04-21 21:25:14 +00:00
|
|
|
- llvm-toolchain-xenial
|
2016-09-17 15:26:13 +00:00
|
|
|
coverity_scan:
|
|
|
|
project:
|
|
|
|
name: "RetroArch"
|
|
|
|
description: "RetroArch is the official reference frontend for the libretro API."
|
|
|
|
notification_email: libretro@gmail.com
|
|
|
|
build_command_prepend: "./configure; make clean"
|
|
|
|
build_command: "make"
|
|
|
|
branch_pattern: coverity_scan
|
2018-04-23 21:08:43 +00:00
|
|
|
notifications:
|
|
|
|
email: false
|