Skip to content

Commit a6951bb

Browse files
Merge pull request #22 from SchemaModule/master
Pull up DEV to MASTER
2 parents 3667309 + 0a2c63e commit a6951bb

File tree

3 files changed

+52
-0
lines changed

3 files changed

+52
-0
lines changed

README.md

-4 Bytes
Latest Version Azure Pipelines Test Status PowerShell Gallery Github Release Issues License Forks
Latest Version
Azure Pipelines Build Status
Azure Build Test Results
Powershell Gallery
Github Release
GitHub issues
GitHub forks
GitHub license
Latest Version Azure Pipelines PowerShell Gallery Github Release Issues Forks License
Latest Version Build Status Powershell Gallery Github Release GitHub issues GitHub forks GitHub license

About

The SchemaModule project grew out of a need to create PowerShell objects from a well-defined JSON schema. The functions included with this module should help a developer leverage objects and properties to create objects on-demand. The intended use-case is for this module to be used inside a script or other module to faciliate the creation of objects and ultimately validation.

azure-pipelines.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Starter pipeline
2+
# Start with a minimal pipeline that you can customize to build and deploy your code.
3+
# Add steps that build, run tests, deploy, and more:
4+
# https://aka.ms/yaml
5+
6+
trigger: none
7+
8+
pool:
9+
vmImage: 'windows-2019'
10+
11+
resources:
12+
repositories:
13+
- repository: tools
14+
type: github
15+
name: Azure-Devops-PowerShell-Module/tools
16+
endpoint: SchemaModule
17+
ref: refs/heads/master
18+
- repository: powershell
19+
type: github
20+
name: SchemaModule/PowerShell
21+
endpoint: SchemaModule
22+
ref: refs/heads/master
23+
24+
stages:
25+
- stage: PackageAndDeployment
26+
jobs:
27+
- job: Packaging
28+
displayName: 'nuGet Specfile Creation'
29+
steps:
30+
- checkout: tools
31+
- checkout: powershell
32+
- powershell: |
33+
$WorkingPath = $pwd;
34+
$toolsPath = "$($WorkingPath)\tools";
35+
$modulePath = "$($WorkingPath)\powershell";
36+
Set-Location $toolsPath;
37+
.\ConvertTo-NuSpec.ps1 -ManifestPath "$($modulePath)\schema\schema.psd1"
38+
displayName: 'Create nuSpec'
39+
errorActionPreference: Stop
40+
- task: NuGetCommand@2
41+
displayName: 'NuGet pack'
42+
inputs:
43+
command: pack
44+
packagesToPack: '$(BUILD.REPOSITORY.LOCALPATH)\powershell\schema\schema.nuspec'
45+
packDestination: '$(BUILD.REPOSITORY.LOCALPATH)\powershell'
46+
- task: NuGetCommand@2
47+
displayName: 'NuGet push'
48+
inputs:
49+
command: push
50+
packagesToPush: '$(BUILD.REPOSITORY.LOCALPATH)\powershell\*.nupkg;'
51+
nuGetFeedType: external
52+
publishFeedCredentials: poshGallery

logo.png

124 KB
Loading

0 commit comments

Comments
 (0)