Fixes #1868: Added Tracis CI config file

Builds on Linux with gcc and clang, and also on Mac.

Had to configure a more recent version of clang as the default Travis CI
one is a bit outdated and wouldn't work.

Unfortunately I was unable to install Nvidia Cg for Mac as it needs to
run the installer interactively. Still, it builds without Cg support.

It only covers a subset of the architectures, but that's better than
nothing and should catch at least basic errors on pull requests
(requires enabling Travis CI support in the GitHub repository settings).
This commit is contained in:
Nicolas Guillaumin 2016-09-05 17:42:17 -07:00
parent e2a734183b
commit ddfa365c20

37
.travis.yml Normal file
View file

@ -0,0 +1,37 @@
# Use 'generic' to be able to override CC/CXX for clang
language: generic
matrix:
include:
- compiler: gcc
- compiler: clang
addons:
# Install a more recent clang than the default
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.8
packages:
- clang-3.8
env: COMPILER_NAME=clang-3.8 CXX=clang++-3.8 CC=clang-3.8
- os: osx
osx_image: xcode7.3
script:
- xcodebuild -target RetroArch -configuration Release -project pkg/apple/RetroArch.xcodeproj
script:
- ./configure
- make
addons:
apt:
packages:
- curl
- pkg-config
- libglu1-mesa-dev
- freeglut3-mesa
- mesa-common-dev
- libsdl1.2-dev
- libsdl-image1.2-dev
- libsdl-mixer1.2-dev
- libsdl-ttf2.0-dev