Skip to content

Commit

Permalink
Setup Appveyor CI with tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaid-Ajaj committed Aug 19, 2019
1 parent 8933c81 commit eadb4e8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
@@ -1,4 +1,4 @@
# Feliz.Router [![Nuget](https://img.shields.io/nuget/v/Feliz.Router.svg?maxAge=0&colorB=brightgreen)](https://www.nuget.org/packages/Feliz.Router)
# Feliz.Router [![Nuget](https://img.shields.io/nuget/v/Feliz.Router.svg?maxAge=0&colorB=brightgreen)](https://www.nuget.org/packages/Feliz.Router) [![Build status](https://ci.appveyor.com/api/projects/status/qwjte2b9vn43j9ff?svg=true)](https://ci.appveyor.com/project/Zaid-Ajaj/feliz-router)

An Elmish router that is focused, powerful yet extremely easy to use. Made for developer happiness.

Expand Down
4 changes: 3 additions & 1 deletion appveyor.yml
Expand Up @@ -14,6 +14,8 @@ cache:
install:
# install latest dotnet core 3 preview
- cmd: choco install dotnetcore-sdk --pre
- cmd: dotnet tool install -g fake-cli
- cmd: dotnet tool install -g paket
# Get the latest stable version of Node.js
- ps: Install-Product node $env:nodejs_version
# # Update npm
Expand All @@ -24,6 +26,6 @@ install:
os: Visual Studio 2017

build_script:
- cmd: build.cmd Build
- cmd: fake build -t test

test: off
9 changes: 7 additions & 2 deletions build.fsx
Expand Up @@ -74,6 +74,8 @@ Target.create "RestoreFableTestProject" <| fun _ ->
Target.create "RunLiveTests" <| fun _ ->
run npmTool "start" "."

Target.create "Test" <| fun _ -> run npmTool "test" "."

let publish projectPath =
[ projectPath </> "bin"
projectPath </> "obj" ] |> Shell.cleanDirs
Expand Down Expand Up @@ -102,12 +104,15 @@ open Fake.Core.TargetOperators

"Clean"
==> "InstallNpmPackages"
==> "RestoreFableTestProject"
==> "RunLiveTests"

"Clean"
==> "InstallNpmPackages"
==> "RestoreFableTestProject"
==> "Test"


"Clean"
==> "InstallNpmPackages"
==> "CompileFableTestProject"
==> "Build"

Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -26,4 +26,4 @@
"react": "^16.8.6",
"react-dom": "^16.8.6"
}
}
}

0 comments on commit eadb4e8

Please sign in to comment.