Skip to content

Instantly share code, notes, and snippets.

@i8degrees
Created March 29, 2015 06:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save i8degrees/be752bccd29c17682217 to your computer and use it in GitHub Desktop.
Save i8degrees/be752bccd29c17682217 to your computer and use it in GitHub Desktop.
travis-ci example
os:
- osx
# language: cpp
language: objective-c
compiler:
- clang
# - gcc
before_install:
- brew update
# - brew install cmake
# FIXME: It might be best if we packaged the freetype2 libs for libRocket
# ourselves?
- brew install freetype
# NOM_DEPS_URL and NOM_OSX_SDK_URL has been set by our repository settings
- wget -O /tmp/deps.tar.gz $NOM_DEPS_URL
before_script:
- tar -xzf /tmp/deps.tar.gz -C third-party
- sudo mkdir -p '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs'
- sudo tar -xzf /tmp/osx10.7.sdk.tar.gz -C /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
- mkdir -p build && cd build
- cmake -GXcode -DDEBUG=on -DDEBUG_ASSERT=on -DEXAMPLES=on -DNOM_BUILD_TESTS=on -DCMAKE_OSX_DEPLOYMENT_TARGET=10.7 -DCMAKE_INSTALL_PREFIX=~/Library/Frameworks ..
script:
- xcodebuild build
- xcodebuild -target install
- xcodebuild -target uninstall
notifications:
email: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment