Skip to content

Commit

Permalink
Update appveyor.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rosolko authored Dec 5, 2022
1 parent 5d9e76e commit f92318a
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,12 @@ version: '{build}'

image: Visual Studio 2019

environment:
LIBRARY_VERSION: '2.16.2'
SONAR_LOGIN:
secure: JNopXLZtkO5PD8yEj2+W1BZnbhq9oegXmTFgvVWQw67z5PtWwd+ngjv5O7xFetCZ

init:
- SET JAVA_HOME=C:\Program Files\Java\jdk11
- SET PATH=%JAVA_HOME%\bin;%PATH%

install:
- ps: if (!$env:APPVEYOR_PULL_REQUEST_NUMBER) { dotnet tool install --global dotnet-sonarscanner }

test: off

before_build:
- ps: if (!$env:APPVEYOR_PULL_REQUEST_NUMBER) { dotnet sonarscanner begin /k:"rosolko_WebDriverManager.Net" /v:$env:LIBRARY_VERSION /o:"rosolko-github" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login=$env:SONAR_LOGIN /d:sonar.language="cs" /d:sonar.exclusions="**/bin/**/*,**/obj/**/*" /d:sonar.coverage.exclusions="WebDriverManager.Tests/**,**/*Tests.cs" /d:sonar.cs.opencover.reportsPaths="C:\projects\webdrivermanager-net\WebDriverManager.Tests\opencover.xml" }

build_script:
- ps: dotnet restore
- ps: dotnet build
- ps: dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat="opencover" /p:CoverletOutput="opencover.xml"

after_build:
- ps: if (!$env:APPVEYOR_PULL_REQUEST_NUMBER) { dotnet sonarscanner end /d:sonar.login=$env:SONAR_LOGIN }
- ps: dotnet test

artifacts:
- path: '**\*.nupkg'

0 comments on commit f92318a

Please sign in to comment.