From ddfa365c20481ae6468c2cd5d1dc771e340334bc Mon Sep 17 00:00:00 2001 From: Nicolas Guillaumin Date: Mon, 5 Sep 2016 17:42:17 -0700 Subject: [PATCH] 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). --- .travis.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000..c519643cca --- /dev/null +++ b/.travis.yml @@ -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