Skip to content

Commit

Permalink
Work CI-CD
Browse files Browse the repository at this point in the history
- Update sign config file to include helper.
- Fix filter in pipeline task to find helper nuget package.
- Remove task to check for artifacts.
- Fix search path in pipeline task for unit tests.
  • Loading branch information
josesimoes committed Dec 16, 2022
1 parent 5dbb39b commit 40727ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 21 deletions.
24 changes: 3 additions & 21 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ jobs:
testAssemblyVer2: |
**\*Tests*.dll
!**\obj\**
searchFolder: '$(System.DefaultWorkingDirectory)/nanoFramework.Serialization.Helper'
searchFolder: '$(System.DefaultWorkingDirectory)/Tests/HelperTests'
platform: '$(BuildPlatform)'
configuration: '$(BuildConfiguration)'
diagnosticsEnabled: true
Expand Down Expand Up @@ -229,30 +229,12 @@ jobs:
inputs:
sourceFolder: $(Build.SourcesDirectory)
Contents: |
*$(nugetPackageName)*.nupkg
*$(nugetPackageName)*.snupkg
*nanoFramework.Serialization.Helper*.nupkg
*nanoFramework.Serialization.Helper*.snupkg
CHANGELOG.md
TargetFolder: '$(Build.ArtifactStagingDirectory)'
flattenFolders: true

- task: PowerShell@2
condition: >-
and(
succeeded(),
not(startsWith(variables['Build.SourceBranch'], 'refs/tags/v'))
)
displayName: Check deployable artifacts
inputs:
targetType: 'inline'
script: |
$artifacts = (Get-ChildItem -Path "$env:Build_ArtifactStagingDirectory" -Recurse)
if ($artifacts.Count -eq 0)
{
Write-Error "No deployable artifacts found!"
Exit 1
}

- task: DotNetCoreCLI@2
displayName: Install SignTool tool
condition: >-
Expand Down
1 change: 1 addition & 0 deletions config/filelist.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
**/nanoFramework.System.Runtime.Serialization
**/nanoFramework.Serialization.Helper

0 comments on commit 40727ff

Please sign in to comment.