Skip to content

Commit

Permalink
Travis CI Integration
Browse files Browse the repository at this point in the history
  • Loading branch information
danoli3 committed Dec 15, 2015
1 parent 0ca75bb commit 2f5c8a7
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

language: objective-c
compiler: clang
osx_image: xcode7.2
sudo: truev
matrix:
include:
- os: osx
compiler: clang
env: TARGET="osx"
- os: osx
compiler: clang
env: TARGET="ios"
script:
- travis/$TARGET/build.sh
git:
depth: 10
6 changes: 6 additions & 0 deletions travis/ios/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
set -ev
echo "**** Building - iOS GameCenterManager Example Project ****"
ROOT=${TRAVIS_BUILD_DIR:-"$( cd "$(dirname "$0")/../.." ; pwd -P )"}
xcodebuild -project "$ROOT/GameCenterManager.xcodeproj" -target GameCenterManager -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO

6 changes: 6 additions & 0 deletions travis/osx/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
set -ev
ROOT=${TRAVIS_BUILD_DIR:-"$( cd "$(dirname "$0")/../.." ; pwd -P )"}
echo "**** Building - OSX GameCenterManager Example Project ****"
xcodebuild -configuration Release -target "GameCenterManager Mac" -project "$ROOT/GameCenterManager.xcodeproj"

0 comments on commit 2f5c8a7

Please sign in to comment.