Promact/slack-erp-custom-integration-mvc

View on GitHub
appveyor.yml

Summary

Maintainability
Test Coverage
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