Skip to content

Commit

Permalink
Seperate code quality from building solution in CI (#443)
Browse files Browse the repository at this point in the history
Seperate code quality from building solution in CI
  • Loading branch information
tomkerkhove authored Mar 26, 2019
1 parent 6d0a087 commit 4d22ebc
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .azure-devops/scraper-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
displayName: Build, Test & Scan Codebase
condition: succeeded()
pool:
vmImage: vs2017-win2016
vmImage: ubuntu-16.04
steps:
- task: DotNetCoreInstaller@0
displayName: 'Install .NET SDK'
Expand All @@ -38,6 +38,23 @@ jobs:
projects: src/Promitor.Scraper.Tests.Unit/Promitor.Scraper.Tests.Unit.csproj
arguments: '--configuration release'

- job: Run_Code_Quality
displayName: Run Code Quality
condition: succeeded()
pool:
vmImage: vs2017-win2016
steps:
- task: DotNetCoreInstaller@0
displayName: 'Install .NET SDK'
inputs:
version: '$(DotNet.SDK.Version)'

- task: DotNetCoreCLI@2
displayName: 'dotnet restore'
inputs:
projects: src/Promitor.sln
arguments: '--configuration release'

- task: alanwales.resharper-code-analysis.custom-build-task.ResharperCli@1
displayName: 'Automated code quality checks'
inputs:
Expand All @@ -59,6 +76,7 @@ jobs:
Write-Host "Build number is '$buildNumber'"
displayName: 'Change Build Number to PR format'
condition: eq(variables['Build.Reason'], 'PullRequest')
- task: Docker@1
displayName: 'Build an image'
inputs:
Expand Down Expand Up @@ -92,6 +110,4 @@ jobs:
dockerRegistryEndpoint: 'Docker Hub'
command: 'Push an image'
imageName: '$(Image.TaggedName)'
condition: eq(variables['Build.Reason'], 'PullRequest')


condition: eq(variables['Build.Reason'], 'PullRequest')

0 comments on commit 4d22ebc

Please sign in to comment.