forked from HTBox/allReady
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
37 lines (29 loc) · 1.58 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
version: 1.0.0.{build}.{branch}
image: Visual Studio 2017
nuget:
account_feed: false
init:
- git config --global core.autocrlf true
cache:
- AllReadyApp\Web-App\AllReady\node_modules #node modules for the app
- '%APPDATA%\npm-cache' # npm cache
install:
- cmd: nuget sources add -Name api.nuget.org -Source https://api.nuget.org/v3/index.json
- choco install firefox
before_build:
- cmd: dotnet restore AllReadyApp\AllReady.Core\AllReady.Core.csproj
- cmd: dotnet restore AllReadyApp\Web-App\AllReady\AllReady.csproj
- cmd: dotnet restore AllReadyApp\Web-App\AllReady.UnitTest\AllReady.UnitTest.csproj
- cmd: dotnet restore AllReadyApp\AllReady.NotificationsWebJob\AllReady.NotificationsWebJob.csproj
- nuget restore AllReadyApp\AllReady.IntegrationTest\AllReady.ScenarioTest.fsproj -SolutionDirectory .\AllReadyApp
- cmd: npm install gulp bower -g
build_script:
- ps: (Get-Content AllReadyApp\Web-App\AllReady\version.json).replace("GITVERSION", (git rev-parse --short HEAD)) | Set-Content AllReadyApp\Web-App\AllReady\version.json
- cmd: dotnet build AllReadyApp\AllReady.Core\AllReady.Core.csproj
- cmd: dotnet publish AllReadyApp\Web-App\AllReady\AllReady.csproj --output c:\Published
- cmd: dotnet build AllReadyApp\Web-App\AllReady.UnitTest\AllReady.UnitTest.csproj
- cmd: dotnet build AllReadyApp\AllReady.NotificationsWebJob\AllReady.NotificationsWebJob.csproj
- cmd: msbuild AllReadyApp\AllReady.IntegrationTest\AllReady.ScenarioTest.fsproj
test_script:
- ps: cd .\AllReadyApp\Web-App\AllReady.UnitTest
- cmd: dotnet test