@@ -62,7 +62,7 @@ Target "BuildVersion" (fun _ ->
6262// Generate assembly info files with the right version & up-to-date information
6363Target " AssemblyInfo" ( fun _ ->
6464 let shared =
65- [ Attribute.Product project
65+ [ Attribute.Product project
6666 Attribute.Description summary
6767 Attribute.Version release.AssemblyVersion
6868 Attribute.FileVersion release.AssemblyVersion ]
@@ -85,9 +85,9 @@ Target "VsixManifest" (fun _ ->
8585 let doc = new XmlDocument( PreserveWhitespace= true ) in
8686 doc.Load manifest
8787 doc.GetElementsByTagName( " Identity" )
88- |> Seq.cast< XmlNode>
89- |> Seq.head
90- |> fun node ->
88+ |> Seq.cast< XmlNode>
89+ |> Seq.head
90+ |> fun node ->
9191 let currentVersion = node.Attributes.GetNamedItem( " Version" ) .Value
9292 node.Attributes.GetNamedItem( " Version" ) .Value <- sprintf " %s .%s " currentVersion AppVeyor.AppVeyorEnvironment.BuildNumber
9393 doc.Save manifest
@@ -124,8 +124,7 @@ Target "BuildTests" (fun _ ->
124124let count label glob =
125125 let ( fileCount , lineCount ) =
126126 !! glob
127- |> Seq.map ( fun path ->
128- File.ReadLines( path) |> Seq.length)
127+ |> Seq.map ( fun path -> File.ReadLines path |> Seq.length)
129128 |> Seq.fold ( fun ( fileCount , lineCount ) lineNum -> ( fileCount+ 1 , lineCount + lineNum)) ( 0 , 0 )
130129 printfn " %s - File Count: %i , Line Count: %i ." label fileCount lineCount
131130
@@ -142,29 +141,29 @@ Target "RunStatistics" (fun _ ->
142141Target " UnitTests" ( fun _ ->
143142 [ @" tests/FSharp.Editing.Tests/bin/Release/FSharp.Editing.Tests.dll" ]
144143 |> NUnit3 ( fun p ->
145- let param =
146- { p with
147- ShadowCopy = false
148- TimeOut = TimeSpan.FromMinutes 20.
149- Framework = NUnit3Runtime.Net45
150- Domain = NUnit3DomainModel.MultipleDomainModel
151- Workers = Some 1
152- ResultSpecs = [ " TestResults.xml" ] }
153- if isAppVeyorBuild then { param with Where = " cat != AppVeyorLongRunning" } else param)
144+ let param =
145+ { p with
146+ ShadowCopy = false
147+ TimeOut = TimeSpan.FromMinutes 20.
148+ // Framework = NUnit3Runtime.Net45
149+ Domain = NUnit3DomainModel.MultipleDomainModel
150+ // Workers = Some 1
151+ ResultSpecs = [ " TestResults.xml" ] }
152+ if isAppVeyorBuild then { param with Where = " cat != AppVeyorLongRunning" } else param)
154153)
155154
156155Target " IntegrationTests" ( fun _ ->
157156 [ @" tests/FSharp.Editing.VisualStudio.Tests/bin/Release/FSharp.Editing.VisualStudio.Tests.dll" ]
158157 |> NUnit3 ( fun p ->
159- let param =
160- { p with
161- ShadowCopy = false
162- TimeOut = TimeSpan.FromMinutes 20.
163- Framework = NUnit3Runtime.Net45
164- Domain = NUnit3DomainModel.MultipleDomainModel
165- Workers = Some 1
166- ResultSpecs = [ " TestResults.xml" ] }
167- if isAppVeyorBuild then { param with Where = " cat != AppVeyorLongRunning" } else param)
158+ let param =
159+ { p with
160+ ShadowCopy = false
161+ TimeOut = TimeSpan.FromMinutes 20.
162+ // Framework = NUnit3Runtime.Net45
163+ Domain = NUnit3DomainModel.MultipleDomainModel
164+ // Workers = Some 1
165+ ResultSpecs = [ " TestResults.xml" ] }
166+ if isAppVeyorBuild then { param with Where = " cat != AppVeyorLongRunning" } else param)
168167)
169168
170169// --------------------------------------------------------------------------------------
@@ -213,27 +212,23 @@ Target "ReleaseDocs" (fun _ ->
213212open Octokit
214213
215214let readString prompt echo : string =
216- let rec loop cs =
217- let key = Console.ReadKey( not echo)
218- match key.Key with
219- | ConsoleKey.Backspace -> match cs with
220- | [] -> loop []
221- | _:: cs -> loop cs
222- | ConsoleKey.Enter -> cs
223- | _ -> loop ( key.KeyChar :: cs)
224-
225- printf " %s " prompt
226- let input =
227- loop []
228- |> List.rev
229- |> Array.ofList
230- |> fun cs -> new String( cs)
231- if not echo then
232- printfn " "
233- input
234-
235- #I @" packages/build/Selenium.Support/lib/net40"
236- #I @" packages/build/Selenium.WebDriver/lib/net40"
215+ let rec loop cs =
216+ let key = Console.ReadKey( not echo)
217+ match key.Key with
218+ | ConsoleKey.Backspace ->
219+ match cs with [] -> loop [] | _:: cs -> loop cs
220+ | ConsoleKey.Enter -> cs
221+ | _ -> loop ( key.KeyChar :: cs)
222+
223+ printf " %s " prompt
224+ let input =
225+ loop []
226+ |> List.rev
227+ |> Array.ofList
228+ |> fun cs -> String cs
229+ if not echo then printfn " "
230+ input
231+
237232#r @" packages/build/Selenium.WebDriver/lib/net40/WebDriver.dll"
238233#r @" packages/build/canopy/lib/canopy.dll"
239234
@@ -246,7 +241,7 @@ Target "UploadToGallery" (fun _ ->
246241 let galleryUrl = sprintf " https://visualstudiogallery.msdn.microsoft.com/%s /edit?newSession=True" vsixGuid
247242
248243 let username , password =
249- let lines = File.ReadAllLines( " gallerycredentials.txt" )
244+ let lines = File.ReadAllLines " gallerycredentials.txt"
250245 lines.[ 0 ], lines.[ 1 ]
251246
252247 // log in to msdn
@@ -259,14 +254,14 @@ Target "UploadToGallery" (fun _ ->
259254 js ( sprintf " $('form[action=\" /%s /edit/changeContributionUpload\" ]').submit();" vsixGuid) |> ignore
260255
261256 // select "upload the vsix"
262- let fi = System.IO.FileInfo( " bin/FSharpVSPowerTools.vsix" )
257+ let fi = System.IO.FileInfo " bin/FSharpVSPowerTools.vsix"
263258
264259 " .uploadFileInput" << fi.FullName
265260 click " #setContributionTypeButton"
266261 sleep 15
267262 click " #uploadButton"
268263 sleep 15
269- quit()
264+ quit ()
270265)
271266
272267Target " Release" ( fun _ ->
@@ -332,7 +327,7 @@ Target "TravisCI" (fun _ ->
332327 ==> " Build"
333328 ==> " BuildTests"
334329 ==> " UnitTests"
335- = => " IntegrationTests"
330+ < => " IntegrationTests"
336331 ==> " Main"
337332
338333" Clean"
0 commit comments