-
Notifications
You must be signed in to change notification settings - Fork 5
/
appveyor.yml
35 lines (30 loc) · 1.79 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
version: 1.0.{build}
pull_requests:
do_not_increment_build_number: true
configuration: Release
platform: Any CPU
environment:
nodejs_version: "0.12"
COVERALLS_REPO_TOKEN:
secure: CT1HunQBUOPdicUugJooNj2m2elDC8PNM6fbGBjpo62ngQJX4t3300ckQDdXn8El
cache:
- "%LOCALAPPDATA%\\Yarn"
- "%APPVEYOR_BUILD_FOLDER%\\Slack.Automation\\packages"
build_script:
- cmd: "nuget restore \".\\Slack.Automation\\Promact.ERP.sln\"\nnpm i -g yarn@0.16.1 && yarn global add typescript typings\ncd \".\\Slack.Automation\\Promact.Erp.Web\"\nyarn\ncd \"..\\..\"\nmsbuild \".\\Slack.Automation\\Promact.ERP.sln\" /m /verbosity:minimal /logger:\"C:\\Program Files\\AppVeyor\\BuildAgent\\Appveyor.MSBuildLogger.dll\" /p:Optimize=False"
build:
project: .\Slack.Automation\Promact.ERP.sln
parallel: true
verbosity: minimal
test_script:
- ps: >-
.\Slack.Automation\packages\OpenCover.4.6.519\tools\OpenCover.Console.exe -register:user -target:".\Slack.Automation\packages\xunit.runner.console.2.2.0-beta5-build3474\tools\xunit.console.exe" "-targetargs:"".\Slack.Automation\Promact.Core.Test\bin\Release\Promact.Core.Test.dll"" -appveyor -noshadow" -filter:"+[Promact.Core.Repository*]*" -output:opencoverCoverage.xml
if(![string]::IsNullOrEmpty($env:COVERALLS_REPO_TOKEN)){
$coveralls = (Resolve-Path "Slack.Automation/packages/coveralls.net.*/tools/csmacnz.coveralls.exe").ToString()
& $coveralls --opencover -i opencoverCoverage.xml --repoToken $env:COVERALLS_REPO_TOKEN --commitId $env:APPVEYOR_REPO_COMMIT --commitBranch $env:APPVEYOR_REPO_BRANCH --commitAuthor $env:APPVEYOR_REPO_COMMIT_AUTHOR --commitEmail $env:APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL --commitMessage $env:APPVEYOR_REPO_COMMIT_MESSAGE --jobId $env:APPVEYOR_JOB_ID
}
- cd ./Slack.Automation/Promact.Erp.Web
- npm test
- npm run tslint
after_test:
- npm run codecov