Skip to content

Commit

Permalink
run other currently working projects
Browse files Browse the repository at this point in the history
  • Loading branch information
dawedawe committed Oct 6, 2023
1 parent 4239885 commit 595d7b2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ let pushPackage nupkg =
return result.ExitCode
}

let analyzeProject projectPath =
$"dotnet fsharp-analyzers --project {projectPath} --analyzers-path ./.analyzerpackages/g-research.fsharp.analyzers/ --verbose"

pipeline "Build" {
workingDir __SOURCE_DIRECTORY__
stage "RestoreTools" { run "dotnet tool restore" }
Expand All @@ -81,8 +84,9 @@ pipeline "Build" {
envVars
[| "DOTNET_ROLL_FORWARD_TO_PRERELEASE", "1"
"DOTNET_ROLL_FORWARD", "LatestMajor" |]
run
"dotnet fsharp-analyzers --project ./src/Fantomas.Benchmarks/Fantomas.Benchmarks.fsproj --analyzers-path ./.analyzerpackages/g-research.fsharp.analyzers/ --verbose"
run (analyzeProject "./src/Fantomas.Benchmarks/Fantomas.Benchmarks.fsproj")
run (analyzeProject "./src/Fantomas.Client.Tests/Fantomas.Client.Tests.fsproj")
run (analyzeProject "./src/Fantomas.Tests/Fantomas.Tests.fsproj")
}
stage "UnitTests" { run "dotnet test -c Release" }
stage "Pack" { run "dotnet pack --no-restore -c Release -o ./bin" }
Expand Down

0 comments on commit 595d7b2

Please sign in to comment.