<commit_before>version: 1.0.{build}
image: Visual Studio 2017
pull_requests:
  do_not_increment_build_number: true
branches:
  only:
  - appveyor
configuration: Release
platform: Any CPU
init:
- cmd: git config --global core.autocrlf true
environment:
  website_name: aspnetcorespa
  website_psw:
    secure: UBm/tZDG4wmtrN6phRaqCBGkZqkpXWIWqMJJFxx6Zknn5imdJssw+9ZZPnT9iriMs364WsFtpNqDi7/sgDt5cQ==
  nodejs_version: "6.9.1"

install:
  - ps: Install-Product node $env:nodejs_version
  - ps: $env:path = $env:appdata + "\npm;" + $env:path
  - npm install

test_script:
  # Output useful info for debugging.
  - node --version && npm --version
  - node -e 'console.log(process.env);'
  - cmd: npm test

cache:
  - node_modules -> package.json                                        # local npm modules

before_build:
  - npm run build:prod                                           # Client production artefacts
  - dotnet restore
build:
  project: AspNetCoreSpa.csproj
  publish_wap: true
  
after_build:
- cmd: >-
    dotnet publish .\ --output %appveyor_build_folder%\dist

# dotnet publish-iis --publish-folder %appveyor_build_folder%\dist --framework %publish:FullTargetFramework%

artifacts:
- path: dist
  name: web-app

## Commented out as VSTS is deploying
# deploy_script:
# - cmd: '"C:\Program Files (x86)\IIS\Microsoft Web Deploy V3\msdeploy.exe" -source:IisApp=''%appveyor_build_folder%\dist'' -dest:IisApp=''%website_name%'',ComputerName=''https://%website_name%.scm.azurewebsites.net/msdeploy.axd'',UserName=''$%website_name%'',Password=''<PASSWORD>%'',IncludeAcls=''False'',AuthType=''Basic'' -verb:sync -enablerule:AppOffline -enableRule:DoNotDeleteRule -retryAttempts:2'<commit_msg>verbosity minimal of build<commit_after>version: 1.0.{build}
image: Visual Studio 2017
pull_requests:
  do_not_increment_build_number: true
branches:
  only:
  - appveyor
configuration: Release
platform: Any CPU
init:
- cmd: git config --global core.autocrlf true
environment:
  website_name: aspnetcorespa
  website_psw:
    secure: UBm/tZDG4wmtrN6phRaqCBGkZqkpXWIWqMJJFxx6Zknn5imdJssw+9ZZPnT9iriMs364WsFtpNqDi7/sgDt5cQ==
  nodejs_version: "6.9.1"

install:
  - ps: Install-Product node $env:nodejs_version
  - ps: $env:path = $env:appdata + "\npm;" + $env:path
  - npm install

test_script:
  # Output useful info for debugging.
  - node --version && npm --version
  - node -e 'console.log(process.env);'
  - cmd: npm test

cache:
  - node_modules -> package.json                                        # local npm modules

before_build:
  - npm run build:prod                                           # Client production artefacts
  - dotnet restore
build:
  project: AspNetCoreSpa.csproj
  publish_wap: true
  verbosity: quiet
  
after_build:
- cmd: >-
    dotnet publish .\ --output %appveyor_build_folder%\dist

# dotnet publish-iis --publish-folder %appveyor_build_folder%\dist --framework %publish:FullTargetFramework%

artifacts:
- path: dist
  name: web-app

## Commented out as VSTS is deploying
# deploy_script:
# - cmd: '"C:\Program Files (x86)\IIS\Microsoft Web Deploy V3\msdeploy.exe" -source:IisApp=''%appveyor_build_folder%\dist'' -dest:IisApp=''%website_name%'',ComputerName=''https://%website_name%.scm.azurewebsites.net/msdeploy.axd'',UserName=''$%website_name%'',Password=''<PASSWORD>%'',IncludeAcls=''False'',AuthType=''Basic'' -verb:sync -enablerule:AppOffline -enableRule:DoNotDeleteRule -retryAttempts:2'
{'fraction_non_alphanumeric': 0.1263127187864644, 'fraction_numerical': 0.014002333722287048, 'mean_word_length': 3.843220338983051, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1114134', 'n_tokens_mistral': 1283, 'n_tokens_neox': 1210, 'n_words': 238}