Skip to content

Commit

Permalink
Don't send artifacts to appveyor when not running under appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
vbfox committed Feb 26, 2016
1 parent b096baa commit 1471fd4
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions build/build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,16 @@ module AppveyorEx =
builder

let PushArtifactEx (setParams : PushArtifactParams -> PushArtifactParams) =
let parameters = setParams defaultPushArtifactParams
new System.Text.StringBuilder()
|> append "PushArtifact"
|> append parameters.Path
|> appendArgIfNotNullOrEmpty parameters.FileName "FileName"
|> appendArgIfNotNullOrEmpty parameters.DeploymentName "DeploymentName"
|> appendIfSome parameters.Type (sprintf "-Type \"%A\"")
|> toText
|> sendToAppVeyor
if buildServer = BuildServer.AppVeyor then
let parameters = setParams defaultPushArtifactParams
new System.Text.StringBuilder()
|> append "PushArtifact"
|> append parameters.Path
|> appendArgIfNotNullOrEmpty parameters.FileName "FileName"
|> appendArgIfNotNullOrEmpty parameters.DeploymentName "DeploymentName"
|> appendIfSome parameters.Type (sprintf "-Type \"%A\"")
|> toText
|> sendToAppVeyor

let inline PushArtifact path =
PushArtifactEx (fun p ->
Expand Down

0 comments on commit 1471fd4

Please sign in to comment.