Skip to content

Commit

Permalink
Reverting for part 3
Browse files Browse the repository at this point in the history
  • Loading branch information
jwood803 committed Nov 2, 2015
1 parent 49d831b commit 6019425
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 53 deletions.
37 changes: 1 addition & 36 deletions FakeDemo/build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ open Fake.XamarinHelper
let buildDir = "FakeDemo/bin/Debug"
let testProj = !! "FakeDemo.UnitTests/FakeDemo.UnitTests.csproj"
let testDll = !! "FakeDemo.UnitTests/bin/Debug/FakeDemo.UnitTests.dll"
let uiTestProj = !! "UITests/FakeDemo.UITests.csproj"
let uiTestDll = !! "UITests/bin/Debug/FakeDemo.UITests.dll"

Target "Clean" (fun _ ->
CleanDir buildDir
Expand All @@ -19,12 +17,6 @@ Target "Build-UnitTests" (fun _ ->
|> Log "---Unit Test build output----"
)

Target "Build-UITests" (fun _ ->
uiTestProj
|> MSBuild "UITests\bin\Debug" "Build" [ ("Configuration", "Debug"); ("Platform", "Any CPU") ]
|> Log "---UI Test build output----"
)

Target "Run-UnitTests" (fun _ ->
testDll |> NUnit ( fun defaults ->
{
Expand All @@ -35,32 +27,6 @@ Target "Run-UnitTests" (fun _ ->
})
)

Target "Run-AndroidUITests" (fun _ ->
let source = PackageHelpers.androidPackage()

let dest =
filename source.FullName
|> sprintf "./RebuyApp.Android.UITests/%s"
|> fileInfo
|> PackageHelpers.moveAndroidApk source

!! @"./**/RebuyApp.Android.UITests/bin/Release/RebuyApp.Android.UITests.dll"
|> NUnit (fun defaults -> { defaults with ErrorLevel = DontFailBuild })

Shell.Exec("adb", "uninstall de.rebuy.android")
|> ignore

DeleteFile dest.FullName
)

Target "Run-iOSUITests" (fun _ ->
uiTestDll |> NUnit ( fun defaults ->
{
defaults with ToolPath = "/Library/Frameworks/Mono.framework/Commands/"
ToolName = "nunit-console4"
})
)

Target "Build-Pcl" (fun _ ->
RestorePackages()

Expand Down Expand Up @@ -93,7 +59,6 @@ Target "Build-Droid" (fun _ ->
==> "Build-Pcl"
==> "Build-iOS"
==> "Build-Droid"
==> "Build-UITests"
==> "Run-AndroidUITests"
==> "Run-UnitTests"

RunTargetOrDefault "Run-UnitTests"
17 changes: 0 additions & 17 deletions FakeDemo/packageHelpers.fsx

This file was deleted.

0 comments on commit 6019425

Please sign in to comment.