1
0
mirror of https://github.com/XFox111/SimpleOTP.git synced 2026-04-22 08:00:45 +03:00

Set up CI with Azure Pipelines (#9)

This commit is contained in:
2021-05-29 02:30:02 +03:00
committed by GitHub
parent 5c2b3562f3
commit 1e169aa4cd
3 changed files with 81 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
.NET library for TOTP/HOTP implementation on server (ASP.NET) or client (Xamarin) side
## Features
- Generate and validate OTP codes
- Support of [TOTP](https://en.wikipedia.org/wiki/Time-based_One-time_password) (RFC 6238) and [HOTP](https://en.wikipedia.org/wiki/HMAC-based_one-time_password) (RFC 4226) algorithms
- Support of HMAC-SHA1, HMAC-SHA256 and HMAC-SHA512 hashing algorithms
- Setup URI parser
- Database-ready configuration models
- Configuration generator for server-side implementation
- QR code generator
- No dependencies
+4
View File
@@ -27,6 +27,10 @@
<NoWarn>1701;1702;AD0001</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<NoWarn>1701;1702;AD0001</NoWarn>
</PropertyGroup>
<ItemGroup>
<None Remove="stylecop.json" />
<None Include="..\LICENSE">
+66
View File
@@ -0,0 +1,66 @@
# .NET Desktop
# Build and run tests for .NET Desktop or Windows classic desktop solutions.
# Add steps that publish symbols, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net
trigger:
- master
pool:
vmImage: 'windows-latest'
variables:
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
steps:
- task: NuGetToolInstaller@1
displayName: 'Install NuGet tools'
- task: NuGetCommand@2
displayName: 'Restore NuGet packages'
inputs:
command: 'restore'
restoreSolution: '**/*.sln'
feedsToUse: 'select'
- task: VSBuild@1
displayName: 'Build library'
inputs:
solution: '**/SimpleOTP.csproj'
msbuildArgs: '/p:NoWarn=AD0001'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
msbuildArchitecture: 'x64'
- task: VSBuild@1
displayName: 'Build tests'
inputs:
solution: '**\*.Test.csproj'
- task: VSTest@2
displayName: 'Run tests'
inputs:
testSelector: 'testAssemblies'
testAssemblyVer2: |
**\*.Tests.dll
!**\*TestAdapter.dll
!**\obj\**
!**\bin\**\ref\**
searchFolder: '$(System.DefaultWorkingDirectory)'
codeCoverageEnabled: true
- task: CopyFiles@2
displayName: 'Copy file to staging'
inputs:
SourceFolder: '$(System.DefaultWorkingDirectory)'
Contents: '**/Release/**/*.nupkg'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
flattenFolders: true
- task: PublishBuildArtifacts@1
displayName: 'Drop artifacts'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'Artifacts'
publishLocation: 'Container'