Building Mono project on the Travis CI OS X Build Environment

Today I changed the Travis CI config file of EncryptedType project to build on Mac OS X.

Here is EncryptedType’s .travis.yml file.

language: objective-c

    - MONO_VERSION=3.10.0

  - wget "${MONO_VERSION}/macos-10-x86/MonoFramework-MDK-${MONO_VERSION}.macos10.xamarin.x86.pkg"
  - sudo installer -pkg "MonoFramework-MDK-${MONO_VERSION}.macos10.xamarin.x86.pkg" -target /

  - ./ Build

EncryptedType is a .NET project written in C#, but the language given here is objective-c. This is THE TRICK! Travis CI automatically uses the OS X build environment when the specified language is objective-c.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s