Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Add continuous deployment to Azure
Browse files Browse the repository at this point in the history
  • Loading branch information
langsamu committed Jun 14, 2020
1 parent c5242f3 commit 3bc7ede
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 5 deletions.
2 changes: 2 additions & 0 deletions PrimeMultiplication.Availability/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ This folder contains a WebTest project.
## Monitoring results
Available [on the Azure portal](https://portal.azure.com/#resource/subscriptions/d40c53cc-9981-4d98-a471-35df02d0bdc7/resourceGroups/PrimeMultiplication/providers/microsoft.insights/components/PrimeMultiplication/availability) (requires login).

When site is unavailable, notification emails are sent to [this](https://www.mailinator.com/v3/index.jsp?query=avastprimemultiplication) (unmoderated Mailinator) inbox.

## Monitored requests
The test contains the following requests:
- API multiplies primes
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[![Build Status](https://dev.azure.com/langsamu/PrimeMultiplication/_apis/build/status/Build?branchName=master)](https://dev.azure.com/langsamu/PrimeMultiplication/_build?definitionId=20)
[![Build Status](https://dev.azure.com/langsamu/PrimeMultiplication/_apis/build/status/Build?branchName=master)](https://dev.azure.com/langsamu/PrimeMultiplication/_build?definitionId=21)

[![Codecov](https://codecov.io/gh/langsamu/avast-recruitment-prime-multiplication/branch/master/graph/badge.svg)](https://codecov.io/gh/langsamu/avast-recruitment-prime-multiplication)
[![Codecov](https://codecov.io/gh/langsamu/PrimeMultiplication/branch/master/graph/badge.svg)](https://codecov.io/gh/langsamu/PrimeMultiplication)
26 changes: 23 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,30 @@ pool:

variables:
BuildConfiguration: Release
TestProjects: 'PrimeMultiplication.Tests/PrimeMultiplication.Tests.csproj'

steps:
- task: DotNetCoreCLI@2
displayName: Restore
inputs:
command: restore

# Needed to gather code coverage in a usable format
- task: DotNetCoreCLI@2
displayName: Install Coverlet
inputs:
command: custom
custom: add
projects: $(TestProjects)
projects: PrimeMultiplication.Tests
arguments: package coverlet.msbuild

# No need to build
- task: DotNetCoreCLI@2
displayName: Remove availability project
inputs:
command: custom
custom: sln
arguments: remove PrimeMultiplication.Availability

- task: DotNetCoreCLI@2
displayName: Build
inputs:
Expand All @@ -44,4 +52,16 @@ steps:
displayName: Upload to Codecov
inputs:
targetType: inline
script: bash <(curl -s https://codecov.io/bash)
script: bash <(curl -s https://codecov.io/bash)

- task: DotNetCoreCLI@2
displayName: Publish
inputs:
command: publish
publishWebProjects: false
projects: PrimeMultiplication.Web
arguments: --configuration $(BuildConfiguration) --output $(build.ArtifactStagingDirectory)
zipAfterPublish: True

- task: PublishBuildArtifacts@1
displayName: Publish build

0 comments on commit 3bc7ede

Please sign in to comment.