<commit_before>version: 1.0.{build}
os: Visual Studio 2015 CTP
configuration: Release

# scripts to run before build
before_build:
- cmd: >-
    nuget restore Proverb.sln

    npm install -g bower
    
    npm install -g gulp

    cd Proverb.Web

    bower install
    
    npm install

    cd ..

#build:
#  project: Proverb.sln
#  publish_wap: true
#  verbosity: minimal

build_script:
- cmd: >-
    msbuild Proverb.sln /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"

    cd Proverb.Web

    gulp build-release

    msbuild Proverb.Web.csproj /t:Package /p:PackageLocation=..\Proverb.Web.zip

    cd ..

artifacts:
- path: Proverb.Web.zip
  name: WebApplication
  type: WebDeployPackage
    
before_test:
- ps: >-
    # Locate Chutzpah

    $ChutzpahDir = get-childitem chutzpah.console.exe -recurse | select-object -first 1 | select -expand Directory
    
    # Run tests using Chutzpah and export results as JUnit format to chutzpah-results.xml

    $ChutzpahCmd = "$($ChutzpahDir)\chutzpah.console.exe $($env:APPVEYOR_BUILD_FOLDER)\Proverb.Web.Tests.JavaScript /junit .\chutzpah-results.xml"

    Write-Host $ChutzpahCmd

    Invoke-Expression $ChutzpahCmd

    # Upload results to AppVeyor one by one

    $testsuites = [xml](get-content .\chutzpah-results.xml)
    
    $anyFailures = $FALSE

    foreach ($testsuite in $testsuites.testsuites.testsuite) {

        write-host " $($testsuite.name)"

        foreach ($testcase in $testsuite.testcase){

            $failed = $testcase.failure

            $time = $testsuite.time

            if ($testcase.time) { $time = $testcase.time }

            if ($failed) {

                write-host "Failed   $($testcase.name) $($testcase.failure.message)"

                Add-AppveyorTest $testcase.name -Outcome Failed -FileName $testsuite.name -ErrorMessage $testcase.failure.message -Duration $time

            }

            else {

                write-host "Passed   $($testcase.name)"

                Add-AppveyorTest $testcase.name -Outcome Passed -FileName $testsuite.name -Duration $time
<commit_msg>Update appveyor.yml<commit_after>version: 1.0.{build}
os: Visual Studio 2015 CTP
configuration: Release

# scripts to run before build
before_build:
- cmd: >-
    nuget restore Proverb.sln

    npm install -g bower
    
    npm install -g gulp

    cd Proverb.Web

    bower install
    
    npm install

    cd ..

#build:
#  project: Proverb.sln
#  publish_wap: true
#  verbosity: minimal

build_script:
- cmd: >-
    msbuild Proverb.sln /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"

    cd Proverb.Web

    gulp build-release

    msbuild Proverb.Web.csproj /t:Package /p:PackageLocation=..\Proverb.Web.zip

    cd ..

artifacts:
- path: Proverb.Web.zip
  name: WebApplication
  type: WebDeployPackage
    
before_test:
- ps: >-
    # Locate Chutzpah

    $ChutzpahDir = get-childitem chutzpah.console.exe -recurse | select-object -first 1 | select -expand Directory
    
    # Run tests using Chutzpah and export results as JUnit format to chutzpah-results.xml

    $ChutzpahCmd = "$($ChutzpahDir)\chutzpah.console.exe $($env:APPVEYOR_BUILD_FOLDER)\Proverb.Web.Tests.JavaScript /junit .\chutzpah-results.xml"

    Write-Host $ChutzpahCmd

    Invoke-Expression $ChutzpahCmd

    # Upload results to AppVeyor one by one

    $testsuites = [xml](get-content .\chutzpah-results.xml)
    
    $anyFailures = $FALSE

    foreach ($testsuite in $testsuites.testsuites.testsuite) {

        write-host " $($testsuite.name)"

        foreach ($testcase in $testsuite.testcase){

            $failed = $testcase.failure

            $time = $testsuite.time

            if ($testcase.time) { $time = $testcase.time }

            if ($failed) {

                write-host "Failed   $($testcase.name) $($testcase.failure.message)"

                Add-AppveyorTest $testcase.name -Outcome Failed -FileName $testsuite.name -ErrorMessage $testcase.failure.message -Duration $time

                $anyFailures = $TRUE

            }

            else {

                write-host "Passed   $($testcase.name)"

                Add-AppveyorTest $testcase.name -Outcome Passed -FileName $testsuite.name -Duration $time

{'fraction_non_alphanumeric': 0.1069094304388422, 'fraction_numerical': 0.0032679738562091504, 'mean_word_length': 2.5383980181668044, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7503556', 'n_tokens_mistral': 1488, 'n_tokens_neox': 1380, 'n_words': 317}