@@ -62,7 +62,7 @@ Target "BuildVersion" (fun _ ->
62
62
// Generate assembly info files with the right version & up-to-date information
63
63
Target " AssemblyInfo" ( fun _ ->
64
64
let shared =
65
- [ Attribute.Product project
65
+ [ Attribute.Product project
66
66
Attribute.Description summary
67
67
Attribute.Version release.AssemblyVersion
68
68
Attribute.FileVersion release.AssemblyVersion ]
@@ -85,9 +85,9 @@ Target "VsixManifest" (fun _ ->
85
85
let doc = new XmlDocument( PreserveWhitespace= true ) in
86
86
doc.Load manifest
87
87
doc.GetElementsByTagName( " Identity" )
88
- |> Seq.cast< XmlNode>
89
- |> Seq.head
90
- |> fun node ->
88
+ |> Seq.cast< XmlNode>
89
+ |> Seq.head
90
+ |> fun node ->
91
91
let currentVersion = node.Attributes.GetNamedItem( " Version" ) .Value
92
92
node.Attributes.GetNamedItem( " Version" ) .Value <- sprintf " %s .%s " currentVersion AppVeyor.AppVeyorEnvironment.BuildNumber
93
93
doc.Save manifest
@@ -124,8 +124,7 @@ Target "BuildTests" (fun _ ->
124
124
let count label glob =
125
125
let ( fileCount , lineCount ) =
126
126
!! glob
127
- |> Seq.map ( fun path ->
128
- File.ReadLines( path) |> Seq.length)
127
+ |> Seq.map ( fun path -> File.ReadLines path |> Seq.length)
129
128
|> Seq.fold ( fun ( fileCount , lineCount ) lineNum -> ( fileCount+ 1 , lineCount + lineNum)) ( 0 , 0 )
130
129
printfn " %s - File Count: %i , Line Count: %i ." label fileCount lineCount
131
130
@@ -142,29 +141,29 @@ Target "RunStatistics" (fun _ ->
142
141
Target " UnitTests" ( fun _ ->
143
142
[ @" tests/FSharp.Editing.Tests/bin/Release/FSharp.Editing.Tests.dll" ]
144
143
|> 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)
154
153
)
155
154
156
155
Target " IntegrationTests" ( fun _ ->
157
156
[ @" tests/FSharp.Editing.VisualStudio.Tests/bin/Release/FSharp.Editing.VisualStudio.Tests.dll" ]
158
157
|> 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)
168
167
)
169
168
170
169
// --------------------------------------------------------------------------------------
@@ -213,27 +212,23 @@ Target "ReleaseDocs" (fun _ ->
213
212
open Octokit
214
213
215
214
let 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
+
237
232
#r @" packages/build/Selenium.WebDriver/lib/net40/WebDriver.dll"
238
233
#r @" packages/build/canopy/lib/canopy.dll"
239
234
@@ -246,7 +241,7 @@ Target "UploadToGallery" (fun _ ->
246
241
let galleryUrl = sprintf " https://visualstudiogallery.msdn.microsoft.com/%s /edit?newSession=True" vsixGuid
247
242
248
243
let username , password =
249
- let lines = File.ReadAllLines( " gallerycredentials.txt" )
244
+ let lines = File.ReadAllLines " gallerycredentials.txt"
250
245
lines.[ 0 ], lines.[ 1 ]
251
246
252
247
// log in to msdn
@@ -259,14 +254,14 @@ Target "UploadToGallery" (fun _ ->
259
254
js ( sprintf " $('form[action=\" /%s /edit/changeContributionUpload\" ]').submit();" vsixGuid) |> ignore
260
255
261
256
// select "upload the vsix"
262
- let fi = System.IO.FileInfo( " bin/FSharpVSPowerTools.vsix" )
257
+ let fi = System.IO.FileInfo " bin/FSharpVSPowerTools.vsix"
263
258
264
259
" .uploadFileInput" << fi.FullName
265
260
click " #setContributionTypeButton"
266
261
sleep 15
267
262
click " #uploadButton"
268
263
sleep 15
269
- quit()
264
+ quit ()
270
265
)
271
266
272
267
Target " Release" ( fun _ ->
@@ -332,7 +327,7 @@ Target "TravisCI" (fun _ ->
332
327
==> " Build"
333
328
==> " BuildTests"
334
329
==> " UnitTests"
335
- = => " IntegrationTests"
330
+ < => " IntegrationTests"
336
331
==> " Main"
337
332
338
333
" Clean"
0 commit comments