forked from Dak0r/Gearboy-rpi-rgb-led-matrix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
25 lines (23 loc) · 1.03 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
matrix:
include:
- os: linux
dist: trusty
sudo: required
language: cpp
env: BUILD_TYPE=desktop
- os: linux
dist: trusty
sudo: required
language: cpp
env: BUILD_TYPE=libretro
- os: osx
language: cpp
env: BUILD_TYPE=ios
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -qq; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y build-essential qt5-default qttools5-dev-tools freeglut3-dev libsdl2-dev libglew-dev; fi
script:
- if [[ "$BUILD_TYPE" == "ios" ]]; then xcodebuild clean build -sdk iphonesimulator -project platforms/ios/Gearboy.xcodeproj -scheme Gearboy CODE_SIGNING_REQUIRED=NO; fi
- if [[ "$BUILD_TYPE" == "desktop" ]]; then cd platforms/linux/Gearboy && qmake Gearboy.pro && make; fi
- if [[ "$BUILD_TYPE" == "libretro" ]]; then cd platforms/libretro && make; fi