-
Notifications
You must be signed in to change notification settings - Fork 16
/
appveyor.yml
30 lines (30 loc) · 1.15 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
version: '1.0.{build}'
image:
- Ubuntu
services:
- docker
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
build_script:
- docker pull mcr.microsoft.com/mssql/server:2017-latest || true
- docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=<YourStrong!Passw0rd>' -p 1433:1433 --name sql1 -d mcr.microsoft.com/mssql/server:2017-latest || true
- docker exec -i sql1 /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P '<YourStrong!Passw0rd>' -Q 'ALTER LOGIN SA WITH PASSWORD="<YourNewStrong!Passw0rd>"' || true
- dotnet ef database update --project source/TodoList.Infrastructure --startup-project source/TodoList.WebApi
- dotnet build
- pushd source/TodoList.ConsoleApp/
- dotnet pack --configuration Release
- popd
test_script:
- dotnet test tests/TodoList.UnitTests/TodoList.UnitTests.csproj
- dotnet test tests/TodoList.IntegrationTests/TodoList.IntegrationTests.csproj
- dotnet test tests/TodoList.AcceptanceTests/TodoList.AcceptanceTests.csproj
artifacts:
- path: '**\*.nupkg'
deploy:
- provider: NuGet
on:
branch: master
api_key:
secure: NPspExync2sCxKTf6UVAJKE3zzrAPiRHUD/mE0uJp8DewvPpE+9+JFPHornWEzrb