-
Notifications
You must be signed in to change notification settings - Fork 5
/
appveyor.yml
48 lines (35 loc) · 1.16 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
version: '{build}'
clone_depth: 50
environment:
LIME_TEST_MARIA_PWD: Password12!
LIME_TEST_PGSQL_PWD: Password12!
LIME_TEST_MSSQL_NAME: (local)\SQL2008R2SP2
LIME_XUNIT_CONSOLE: packages\xunit.runner.console.2.1.0\tools\xunit.console.exe
cache:
- packages -> **\packages.config, Nuget.Config
- '%LOCALAPPDATA%\Microsoft\dotnet -> appveyor.yml'
- '%USERPROFILE%\.nuget\packages -> appveyor.yml, **\project.json, Nuget.Config'
services:
- mssql2008r2sp2
- mysql
- postgresql
before_build:
- dotnet --version
# Restore packages
- dotnet restore LimeBean.NetCore -v minimal
- nuget restore LimeBean.sln
# Write version, copyright, etc
- powershell -File write-meta.ps1 %APPVEYOR_BUILD_NUMBER% %APPVEYOR_REPO_TAG_NAME%
build_script:
- msbuild LimeBean.sln /v:m
- dotnet build LimeBean.NetCore\LimeBean
- dotnet build LimeBean.NetCore\LimeBean.Tests
test_script:
# .NET
- '%xunit20%\xunit.console bin\LimeBean.Tests.dll -appveyor'
# .NET Core
- dotnet test LimeBean.NetCore\LimeBean.Tests
after_test:
- dotnet pack LimeBean.NetCore\LimeBean --configuration=Release
artifacts:
- path: LimeBean.NetCore\LimeBean\bin\Release\*.nupkg