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

env:
  global:
    - MONO_VERSION=3.10.0

install:
  - wget "http://download.mono-project.com/archive/${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 /

script:
  - ./build.sh 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:

WordPress.com Logo

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

Facebook photo

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

Connecting to %s