Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added method to update nuget via Azure DevOps #4

Merged
merged 20 commits into from
Oct 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
260998b
Set up CI with Azure Pipelines
tjsullivan1 Oct 29, 2019
4c4c596
testing pipeline for nuspec build
tjsullivan1 Oct 29, 2019
d194ed9
Fixed formatting error in files spec
tjsullivan1 Oct 29, 2019
faa1f77
Update azure-pipelines-preview.yml for Azure Pipelines
tjsullivan1 Oct 29, 2019
07b1ac9
Update azure-pipelines-preview.yml for Azure Pipelines
tjsullivan1 Oct 29, 2019
d1720d4
Update azure-pipelines-preview.yml for Azure Pipelines
tjsullivan1 Oct 29, 2019
ed244e3
Fixed pipeline...
tjsullivan1 Oct 29, 2019
8424f63
created initial workflow for github action
tjsullivan1 Oct 29, 2019
bb61c37
added more specific ID so I can test nuget.org
tjsullivan1 Oct 29, 2019
191e67a
Merge branch 'master' of https://github.com/tjsullivan1/CIS4Azure-Pester
tjsullivan1 Oct 29, 2019
7df8583
Merge pull request #1 from markgar/master
tjsullivan1 Oct 29, 2019
c655d72
added license to nuspec
tjsullivan1 Oct 29, 2019
6311cc0
moved license to an optional header in metadata
tjsullivan1 Oct 29, 2019
7e3f1d7
Trying license with expression
tjsullivan1 Oct 29, 2019
b5177d4
checking to see if windows VM image fixes issue with nuget
tjsullivan1 Oct 29, 2019
7061fb3
trying to removing metadata xmlns
tjsullivan1 Oct 29, 2019
7900e70
trying differnt schema date
tjsullivan1 Oct 29, 2019
8c0746e
Update azure-pipelines-preview.yml for Azure Pipelines
tjsullivan1 Oct 29, 2019
a865a41
Update azure-pipelines-preview.yml for Azure Pipelines
tjsullivan1 Oct 29, 2019
2c9cbc1
Ready to pull into markgar version
tjsullivan1 Oct 29, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions CIS4Azure.Tests.Pester.nuspec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata>
<!-- Required elements-->
<id>CIS4Azure.Tests.Pester</id>
Expand All @@ -8,9 +8,18 @@
<authors>mgarner</authors>

<!-- Optional elements -->
<license type="expression">MIT</license>
<!-- ... -->
</metadata>

<files>
<file src="pester/Storage.Tests.ps1" target="Storage.Tests.ps1" />
<file src="pester/1.Identity.Tests.ps1" target="1.Identity.Tests.ps1" />
<file src="pester/2.SecurityCenter.Tests.ps1" target="2.SecurityCenter.Tests.ps1" />
<file src="pester/3.Storage.Tests.ps1" target="3.Storage.Tests.ps1" />
<file src="pester/4.SQL.Tests.ps1" target="4.SQL.Tests.ps1" />
<file src="pester/5.Logging.Tests.ps1" target="5.Logging.Tests.ps1" />
<file src="pester/6.Networking.Tests.ps1" target="6.Networking.Tests.ps1" />
<file src="pester/7.VirtualMachines.Tests.ps1" target="7.VirtualMachines.Tests.ps1" />
<file src="pester/8.Other.Tests.ps1" target="8.Other.Tests.ps1" />
</files>
</package>
40 changes: 40 additions & 0 deletions azure-pipelines-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml

name: $(Rev:r)

variables:
Major: 1
Minor: 1
Patch: 1
Build: $[counter(format('{0}.{1}', variables['Major'], variables['Minor'], variables['Patch'], 0))]
Version: '$(Major).$(Minor).$(Patch).$(Build)-preview'

trigger:
- master

pool:
vmImage: 'windows-latest'

steps:
- task: NuGetToolInstaller@1
inputs:
versionSpec: '5.3.1'
checkLatest: true
- task: NuGetCommand@2
displayName: Pack NuGet package
inputs:
command: 'pack'
packagesToPack: 'CIS4Azure.Tests.Pester.nuspec'
versioningScheme: byEnvVar
versionEnvVar: 'Version'

- task: NuGetCommand@2
inputs:
command: 'push'
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
nuGetFeedType: 'external'
publishFeedCredentials: 'nuget.org'