Skip to content

Instantly share code, notes, and snippets.

@jacano
Created June 25, 2015 15:18
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jacano/a84a06a4d65218e98fab to your computer and use it in GitHub Desktop.
#r @"Tools/FAKE/tools/FakeLib.dll"
#load "Tools/build-helpers.fsx"
#load "Tools/hockey-app-helpers-mac.fsx"
open Fake
open System
open System.IO
open System.Linq
open System.Text.RegularExpressions
open BuildHelpers
open Fake.XamarinHelper
open HockeyAppHelper
let hockeyAppApiToken = "YOUHOCKEYAPPTOKEN"
let buildCounter = BuildHelpers.GetBuildCounter TeamCityHelper.TeamCityBuildNumber
let artifactNameIOS = "ArtifactName" + buildCounter + ".ipa"
let slnDirIOS = "YOURAPP.iOS.sln"
let buildConfDebugIOS = "Debug"
let platformConfSimulatorIOS = "iPhoneSimulator"
let buildConfReleaseIOS = "Release"
let platformConfDeviceIOS = "iPhone"
Target "ios-build-debug" (fun () ->
iOSBuild (fun defaults ->
{defaults with
ProjectPath = slnDirIOS
Configuration = buildConfDebugIOS + "|" + platformConfSimulatorIOS
Target = "Build"
})
)
Target "ios-build-release" (fun () ->
iOSBuild (fun defaults ->
{defaults with
ProjectPath = slnDirIOS
Configuration = buildConfReleaseIOS + "|" + platformConfDeviceIOS
Target = "Build"
})
)
Target "ios-publish-hockey" (fun () ->
HockeyAppHelper.Upload hockeyAppApiToken artifactNameIOS buildCounter
)
RunTarget()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment