Skip to content

Commit

Permalink
Appveyor CI restore (#39)
Browse files Browse the repository at this point in the history
* net5.0 support
  • Loading branch information
Leonid Efremov authored Aug 17, 2021
1 parent dcac9d0 commit f6e309d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -197,4 +197,5 @@ ModelManifest.xml
*.nunit.xml
.packages/
.sonarqube/
coverage.opencover.xml
coverage.*.opencover.xml

2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>
<PropertyGroup>
<ApplicationVersion>$(Version)</ApplicationVersion>
<VersionPrefix>1.3.0</VersionPrefix>
<VersionPrefix>1.4.0</VersionPrefix>
<VersionSuffix>$(VersionSuffix)</VersionSuffix>
<Company></Company>
<Authors>Leonid Efremov</Authors>
Expand Down
13 changes: 8 additions & 5 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ skip_branch_with_pr: true

max_jobs: 1

image: Visual Studio 2019
image: Ubuntu

shallow_clone: true
shallow_clone: false

init:
- git config --global core.autocrlf input

install:
- dotnet tool install --global dotnet-sonarscanner
- dotnet tool install --global dotnet-sonarscanner --version 5.2.2
- ps: |
$content = Get-Content -Path Directory.Build.props
$regex = New-Object System.Text.RegularExpressions.Regex ('()([\d]+.[\d]+.[\d]+)(<\/VersionPrefix>)', [System.Text.RegularExpressions.RegexOptions]::MultiLine)
Expand All @@ -32,19 +32,22 @@ install:
configuration: Release

before_build:
- ps: $env:JAVA_HOME=$env:JAVA_HOME_15_X64
- ps: 'if (-Not $env:APPVEYOR_PULL_REQUEST_NUMBER) { &
dotnet sonarscanner begin
/k:"$env:APPVEYOR_PROJECT_NAME"
/v:"$env:APPVEYOR_BUILD_VERSION"
/o:"$env:SONAR_ORGANIZATION"
/d:sonar.host.url="https://sonarcloud.io"
/d:sonar.login="$env:SONAR_LOGIN"
/d:sonar.cs.opencover.reportsPaths="**\coverage.opencover.xml"
/d:sonar.cs.opencover.reportsPaths="**\coverage.*.opencover.xml"
/d:sonar.coverage.exclusions="**Tests*.cs"
/d:sonar.language=csharp
/d:sonar.verbose=false
}'

build_script:
- dotnet build --configuration %CONFIGURATION%
- dotnet build # --configuration %CONFIGURATION%

after_build:
- dotnet pack --no-build
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"sdk": {
"version": "5.0.102"
"version": "5.0.300"
}
}

0 comments on commit f6e309d

Please sign in to comment.