Last active
August 29, 2015 14:24
-
-
Save hossambarakat/6474ea65ce6967993ddb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module BuildHelpers | |
open Fake | |
open Fake.XamarinHelper | |
open System | |
open System.IO | |
open System.Linq | |
let Exec command args = | |
let result = Shell.Exec(command, args) | |
if result <> 0 then failwithf "%s exited with error %d" command result | |
let RestorePackages solutionFile = | |
Exec "tools/NuGet/NuGet.exe" ("restore " + solutionFile) | |
solutionFile |> RestoreComponents (fun defaults -> {defaults with ToolPath = "tools/xpkg/xamarin-component.exe" }) | |
let RunNUnitTests dllPath xmlPath = | |
Exec "tools/NUnit/nunit-console" (dllPath + " -xml=" + xmlPath) | |
TeamCityHelper.sendTeamCityNUnitImport xmlPath | |
let GetBuildCounter (str:Option<string>) = | |
match str with | |
| Some(v) -> v | |
| None -> "Local" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment