<commit_before>#r "packages/FAKE/tools/FakeLib.dll" // 1
open Fake // 2

Target "Test" (fun _ -> // 3
    trace "Testing stuff..."
)

Target "Build" (fun _ ->
    trace "Heavy build action"
)

"Build" // 4
   ==> "Test"

Run "Test" // 5<commit_msg>Add iOS and Android build targets<commit_after>#r "packages/FAKE/tools/FakeLib.dll" // 1
open Fake // 2
open Fake.XamarinHelper

let buildDir = "FakeDemo/bin/Debug"

Target "Clean" (fun _ ->
    CleanDir buildDir
)

Target "Test" (fun _ -> // 3
    trace "Testing stuff..."
)

Target "BuildPcl" (fun _ ->
    //RestorePackages ()

    !! "FakeDemo.csproj"
        |> MSBuild "FakeDemo/bin/Debug" "Build"  [ ("Configuration", "Debug"); ("Platform", "Any CPU") ] 
        |> Log "---PCL build output---"
)

Target "Build-iOS" (fun _ ->
    iOSBuild (fun defaults -> 
        { 
            defaults with ProjectPath = "iOS/FakeDemo.iOS.csproj"
                          OutputPath = "iOS/iPhoneSimulator/Debug"
                          Configuration = "Debug|iPhoneSimulator"
                          Target = "Build"
        })
)

Target "Build-Droid" (fun _ ->
    !! "Droid/FakeDemo.Droid.csproj"
        |> MSBuild "Droid/bin/Debug" "Build" [ ("Configuration", "Debug"); ("Platform", "Any CPU") ]
        |> Log "----Android build output----"
)

"BuildPcl" // 4
   ==> "Clean"
   ==> "Test"

"Build-Droid"
   ==> "Build-iOS"


RunTargetOrDefault "Test" // 5
{'fraction_non_alphanumeric': 0.17459190915542938, 'fraction_numerical': 0.007097232079488999, 'mean_word_length': 2.175675675675676, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1501618', 'n_tokens_mistral': 500, 'n_tokens_neox': 474, 'n_words': 111}