Skip to content

Commit

Permalink
Fix travis tests. Fixes #209 (#239)
Browse files Browse the repository at this point in the history
* Fix Travis build not running tests

* Update dependencies
  • Loading branch information
ErikSchierboom authored Dec 10, 2016
1 parent b177831 commit 58c96ea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@ Target "Copy" (fun _ -> CopyDir buildDir sourceDir allFiles)

Target "BuildUnchanged" (fun _ ->
MSBuildRelease buildDir "Build" [solutionFile]
|> Log "AppBuild-Output: "
|> Log "Build unchanged: "
)

Target "PrepareTests" (fun _ ->
let ignorePattern = "(\[<Ignore\(\"Remove to run test\"\)>]|, Ignore = \"Remove to run test case\")"
let ignorePattern = "(\[<Ignore\(\"Remove to run test\"\)>\]|, Ignore = \"Remove to run test case\")"

!! (buildDir @@ "**/*Test?.fs")
!! (buildDir @@ "**/*Test.fs")
|> RegexReplaceInFilesWithEncoding ignorePattern "" System.Text.Encoding.UTF8
)

Target "BuildWithAllTests" (fun _ ->
MSBuildRelease buildDir "Build" [solutionFile]
|> Log "AppBuild-Output: "
MSBuildRelease buildDir "Rebuild" [solutionFile]
|> Log "Build with tests: "
)

Target "Test" (fun _ ->
Expand Down
6 changes: 3 additions & 3 deletions paket.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
NUGET
remote: https://www.nuget.org/api/v2
FAKE (4.35.1)
FAKE (4.46.1)
FParsec (1.0.2)
FSharp.Core (4.0.0.1)
NUnit (3.4.1)
NUnit.ConsoleRunner (3.4.1)
NUnit (3.5)
NUnit.ConsoleRunner (3.5)

0 comments on commit 58c96ea

Please sign in to comment.