<commit_before># master branch configuration
branches:
  only:
    - master
    - develop
    - /feature.*/
    - /bugfix.*/
    - /release.*/      

skip_tags: true
skip_branch_with_pr: true
skip_commits:
  message: /Update.*\.md/

version: 3.2.1.{build}
image: Visual Studio 2017
  
install:
  - choco install msbuild-sonarqube-runner -y
  - choco install googlechrome -y

nuget:
  disable_publish_on_pr: true

environment:
  GH_ACCESS_TOKEN:
    secure: <KEY>
  SonarQubeAccessToken:
    secure: <KEY>
  GitHubAccessToken:
    secure: <KEY>
      
build_script:
  - ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER) { SonarScanner.MSBuild.exe begin /n:Selenium.WebDriver.Extensions /k:selenium.webdriver.extensions /v:3.0 /d:sonar.host.url=https://sonarqube.com /d:sonar.organization=rayell-github /d:sonar.login=$env:SonarQubeAccessToken /d:sonar.analysis.mode=preview /d:sonar.github.pullRequest=$env:APPVEYOR_PULL_REQUEST_NUMBER /d:sonar.github.repository=Softlr/Selenium.WebDriver.Extensions /d:sonar.github.oauth=$env:GitHubAccessToken /d:sonar.cs.opencover.reportsPaths=coverage.xml }
  - ps: if (-Not $env:APPVEYOR_PULL_REQUEST_NUMBER) { SonarScanner.MSBuild.exe begin /n:Selenium.WebDriver.Extensions /k:selenium.webdriver.extensions /v:3.0 /d:sonar.host.url=https://sonarqube.com /d:"sonar.organization=rayell-github" /d:"sonar.login=$env:SonarQubeAccessToken" /d:"sonar.cs.opencover.reportsPaths=coverage.xml" }
  - dotnet build -c Release

after_build:
  - dotnet pack --include-symbols --include-source --no-build /p:Version:3.2.1

test_script:
- ps: >-
    & (Resolve-Path $env:USERPROFILE\.nuget\packages\xunit.runner.console\*\tools\net452\xunit.console.exe) test\Selenium.WebDriver.Extensions.Tests\bin\Release\net47\Selenium.WebDriver.Extensions.Tests.dll -noshadow -parallel all -appveyor
- ps: >-
    & (Resolve-Path $env:USERPROFILE\.nuget\packages\xunit.runner.console\*\tools\net452\xunit.console.exe) test\Selenium.WebDriver.Extensions.IntegrationTests\bin\Release\net47\Selenium.WebDriver.Extensions.IntegrationTests.dll -noshadow -parallel all -appveyor -trait Browser=Chrome
- ps: >-
    & (Resolve-Path $env:USERPROFILE\.nuget\packages\xunit.runner.console\*\tools\net452\xunit.console.exe) test\Selenium.WebDriver.Extensions.IntegrationTests\bin\Release\net47\Selenium.WebDriver.Extensions.IntegrationTests.dll -noshadow -parallel all -appveyor -trait Browser=InternetExplorer
- ps: SonarScanner.MSBuild.exe end /d:sonar.login=$env:SonarQubeAccessToken
after_test:
- ps: >-
    & (Resolve-Path $env:USERPROFILE\.nuget\packages\JetBrains.ReSharper.CommandLineTools\*\tools\inspectcode.exe) Selenium.WebDriver.Extensions.sln --output=ReSharper.xml /no-swea
- ps: >-
    & (Resolve-Path $env:USERPROFILE\.nuget\packages\OpenCover\*\tools\OpenCover.Console.exe) -register:user -target:(Resolve-Path $env:USERPROFILE\.nuget\packages\xunit.runner.console\*\tools\net452\xunit.console.exe) -targetargs:"test\Selenium.WebDriver.Extensions.Tests\bin\Release\net47\Selenium.WebDriver.Extensions.Tests.dll -noshadow -parallel all" -output:coverage.xml -filter:"+[Selenium.WebDriver.Extensions*]* -[*]*Exception* -[*Tests]* -[xunit*]*"
- ps: >-
    & (Resolve-Path $env:USERPROFILE\.nuget\packages\ReportGenerator\*\tools\ReportGenerator.exe) -reports:coverage.xml -targetdir:CoverageReport
- SET PATH=C:\Python34;C:\Python34\Scripts;%PATH%"
- pip install codecov
- codecov -f coverage.xml

artifacts:
  - path: ReSharper.xml
  - path: coverage.xml
  - path: CoverageReport
  - path: .\*.nupkg<commit_msg>dotnet pack command fixed<commit_after># master branch configuration
branches:
  only:
    - master
    - develop
    - /feature.*/
    - /bugfix.*/
    - /release.*/      

skip_tags: true
skip_branch_with_pr: true
skip_commits:
  message: /Update.*\.md/

version: 3.2.1.{build}
image: Visual Studio 2017
  
install:
  - choco install msbuild-sonarqube-runner -y
  - choco install googlechrome -y

nuget:
  disable_publish_on_pr: true

environment:
  GH_ACCESS_TOKEN:
    secure: <KEY>
  SonarQubeAccessToken:
    secure: <KEY>
  GitHubAccessToken:
    secure: r+IxpBcxWvxwGdiNvsHFEWa0wa8WPzw3uRi+1/ObwPoGS16bzG9FObtJIsFdmj0L
      
build_script:
  - ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER) { SonarScanner.MSBuild.exe begin /n:Selenium.WebDriver.Extensions /k:selenium.webdriver.extensions /v:3.0 /d:sonar.host.url=https://sonarqube.com /d:sonar.organization=rayell-github /d:sonar.login=$env:SonarQubeAccessToken /d:sonar.analysis.mode=preview /d:sonar.github.pullRequest=$env:APPVEYOR_PULL_REQUEST_NUMBER /d:sonar.github.repository=Softlr/Selenium.WebDriver.Extensions /d:sonar.github.oauth=$env:GitHubAccessToken /d:sonar.cs.opencover.reportsPaths=coverage.xml }
  - ps: if (-Not $env:APPVEYOR_PULL_REQUEST_NUMBER) { SonarScanner.MSBuild.exe begin /n:Selenium.WebDriver.Extensions /k:selenium.webdriver.extensions /v:3.0 /d:sonar.host.url=https://sonarqube.com /d:"sonar.organization=rayell-github" /d:"sonar.login=$env:SonarQubeAccessToken" /d:"sonar.cs.opencover.reportsPaths=coverage.xml" }
  - dotnet build -c Release

after_build:
  - dotnet pack --include-symbols --include-source --no-build /p:Version=3.2.1

test_script:
- ps: >-
    & (Resolve-Path $env:USERPROFILE\.nuget\packages\xunit.runner.console\*\tools\net452\xunit.console.exe) test\Selenium.WebDriver.Extensions.Tests\bin\Release\net47\Selenium.WebDriver.Extensions.Tests.dll -noshadow -parallel all -appveyor
- ps: >-
    & (Resolve-Path $env:USERPROFILE\.nuget\packages\xunit.runner.console\*\tools\net452\xunit.console.exe) test\Selenium.WebDriver.Extensions.IntegrationTests\bin\Release\net47\Selenium.WebDriver.Extensions.IntegrationTests.dll -noshadow -parallel all -appveyor -trait Browser=Chrome
- ps: >-
    & (Resolve-Path $env:USERPROFILE\.nuget\packages\xunit.runner.console\*\tools\net452\xunit.console.exe) test\Selenium.WebDriver.Extensions.IntegrationTests\bin\Release\net47\Selenium.WebDriver.Extensions.IntegrationTests.dll -noshadow -parallel all -appveyor -trait Browser=InternetExplorer
- ps: SonarScanner.MSBuild.exe end /d:sonar.login=$env:SonarQubeAccessToken
after_test:
- ps: >-
    & (Resolve-Path $env:USERPROFILE\.nuget\packages\JetBrains.ReSharper.CommandLineTools\*\tools\inspectcode.exe) Selenium.WebDriver.Extensions.sln --output=ReSharper.xml /no-swea
- ps: >-
    & (Resolve-Path $env:USERPROFILE\.nuget\packages\OpenCover\*\tools\OpenCover.Console.exe) -register:user -target:(Resolve-Path $env:USERPROFILE\.nuget\packages\xunit.runner.console\*\tools\net452\xunit.console.exe) -targetargs:"test\Selenium.WebDriver.Extensions.Tests\bin\Release\net47\Selenium.WebDriver.Extensions.Tests.dll -noshadow -parallel all" -output:coverage.xml -filter:"+[Selenium.WebDriver.Extensions*]* -[*]*Exception* -[*Tests]* -[xunit*]*"
- ps: >-
    & (Resolve-Path $env:USERPROFILE\.nuget\packages\ReportGenerator\*\tools\ReportGenerator.exe) -reports:coverage.xml -targetdir:CoverageReport
- SET PATH=C:\Python34;C:\Python34\Scripts;%PATH%"
- pip install codecov
- codecov -f coverage.xml

artifacts:
  - path: ReSharper.xml
  - path: coverage.xml
  - path: CoverageReport
  - path: .\*.nupkg
{'fraction_non_alphanumeric': 0.1453905700211119, 'fraction_numerical': 0.011822660098522168, 'mean_word_length': 4.64416203335981, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 20, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 16}, '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': '4386077', 'n_tokens_mistral': 2728, 'n_tokens_neox': 2606, 'n_words': 330}