forked from DevExpress/DevExtreme.AspNet.Data
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
41 lines (33 loc) · 1.5 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
version: '{build}'
environment:
RELEASE_KEY_SECRET:
secure: qK/vt4/ihLipeamB7l+Dng==
cache:
- 'netcoredist.exe -> appveyor.yml'
- '%LOCALAPPDATA%\NuGet -> **\packages.config'
- '%USERPROFILE%\.nuget\packages -> appveyor.yml, **\project.json'
- node_modules -> package.json
install:
- if not exist netcoredist.exe appveyor DownloadFile https://go.microsoft.com/fwlink/?LinkID=836281 -FileName netcoredist.exe
- netcoredist /install /quiet
- npm install
before_build:
- dotnet restore -v minimal
- nuget restore net\DevExtreme.AspNet.Data.Tests.NET40
- powershell -File build\replace-meta.ps1 %APPVEYOR_BUILD_NUMBER% %APPVEYOR_REPO_TAG_NAME%
- if defined RELEASE_KEY_SECRET (nuget install secure-file -ExcludeVersion && secure-file\tools\secure-file -decrypt net\DevExtreme.AspNet.Data\release.snk.enc -secret %RELEASE_KEY_SECRET%)
build_script:
- dotnet build net\DevExtreme.AspNet.Data
- dotnet build net\DevExtreme.AspNet.Data.Tests
- dotnet build net\Sample
- msbuild net\DevExtreme.AspNet.Data.Tests.NET40\DevExtreme.AspNet.Data.Tests.NET40.sln /v:q
test_script:
- npm test
- dotnet test net\DevExtreme.AspNet.Data.Tests -f netcoreapp1
- xunit.console.clr4 net\DevExtreme.AspNet.Data.Tests.NET40\bin\Debug\DevExtreme.AspNet.Data.Tests.dll /appveyor
after_test:
- npm pack
- if defined RELEASE_KEY_SECRET dotnet pack net\DevExtreme.AspNet.Data --configuration=Release
artifacts:
- path: net\DevExtreme.AspNet.Data\bin\Release\*.nupkg
- path: devextreme-aspnet-data-*.tgz