forked from HTBox/allReady
-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
57 lines (48 loc) · 2.59 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: 1.0.0.{build}.{branch}
nuget:
account_feed: true
init:
- git config --global core.autocrlf true
services:
- mssql2014
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:
- ps: "&{$Branch='dev';iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}"
- cmd: dnvm install 1.0.0-rc1-final
- cmd: dnvm upgrade
- cmd: dnvm update-self
- cmd: dnvm list
- cmd: dnvm use 1.0.0-rc1-final
- cmd: dnu restore AllReadyApp
- nuget restore AllReadyApp\AllReady.Models\AllReady.Models.csproj -SolutionDirectory .\AllReadyApp
- nuget restore AllReadyApp\NotificationsProcessor\NotificationsProcessor.csproj -SolutionDirectory .\AllReadyApp
- 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 HEAD)) | Set-Content AllReadyApp\Web-App\AllReady\version.json
- cmd: msbuild AllReadyApp\AllReady.Models\AllReady.Models.csproj
- cmd: dnu build AllReadyApp/wrap/AllReady.Models/project.json
- cmd: dnu publish AllReadyApp\Web-App\AllReady\project.json --out c:\Published
- cmd: dnu build AllReadyApp\Web-App\AllReady.UnitTest\project.json
- cmd: msbuild AllReadyApp\NotificationsProcessor\NotificationsProcessor.csproj
- cmd: msbuild AllReadyApp\AllReady.IntegrationTest\AllReady.ScenarioTest.fsproj
test_script:
- ps: cd .\AllReadyApp\Web-App\AllReady.UnitTest
- cmd: dnx test
# Comment out the integration tests, until we figure out why they
# continue to time out.
# - ps: cd C:\Projects\allReady\AllReadyApp\Web-App\AllReady
# - cmd: set Data:DefaultConnection:ConnectionString=Server=(local)\SQL2014;Database=AllReady;User ID=sa;Password=Password12!
# - cmd: set Hosting:Environment=Development
# - ps: sqlcmd -S "(local)\SQL2014" -Q "Use [master]; CREATE DATABASE [AllReady]"
# - cmd: echo "== starting web server =="
# - ps: start-process "dnx" "web --server.urls http://localhost:33310" -RedirectStandardOutput "c:\logs\ketral.log"
# - cmd: echo "==Finished launching website=="
# - cmd: timeout 60
# - cmd: C:\Projects\allReady\AllReadyApp\AllReady.IntegrationTest\bin\Debug\AllReady.IntegrationTest.exe
# - cmd: echo "== Finished running integration tests =="