Skip to content

Commit ec17054

Browse files
committed
Merge branch 'preview1-pr'
2 parents ca97afd + 8d168d2 commit ec17054

13 files changed

+2861
-1
lines changed

Archive_v1/.azdevops/CI.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: $(BuildDefinitionName)_$(date:yyMM).$(date:dd)$(rev:rrr)
2+
3+
trigger: none
4+
5+
resources:
6+
repositories:
7+
- repository: ComplianceRepo
8+
type: github
9+
endpoint: ComplianceGHRepo
10+
name: PowerShell/compliance
11+
12+
variables:
13+
- name: PackageName
14+
value: 'Microsoft.PowerShell.Archive'
15+
- name: PackageVersion
16+
value: ''
17+
- name: BuildOutDir
18+
value: ''
19+
20+
stages:
21+
- stage: Build
22+
displayName: Build module
23+
pool:
24+
vmImage: windows-2019
25+
jobs:
26+
- job: BuildPkg
27+
displayName: Build module
28+
steps:
29+
30+
- pwsh: |
31+
& $(Build.SourcesDirectory)\SimpleBuild.ps1
32+
displayName: Build Microsoft.PowerShell.Archive module
33+
condition: succeededOrFailed()
34+
35+
- pwsh: |
36+
dir "$(BuildOutDir)\*" -Recurse
37+
displayName: Show BuildOutDirectory
38+
39+
- template: Sbom.yml@ComplianceRepo
40+
parameters:
41+
BuildDropPath: "$(BuildOutDir)"
42+
Build_Repository_Uri: 'https://github.com/PowerShell/Microsoft.PowerShell.Archive'
43+
PackageName: $(PackageName)
44+
PackageVersion: $(PackageVersion)
45+
46+
- pwsh: |
47+
dir "$(BuildOutDir)\*" -Recurse
48+
displayName: Show BuildOutDirectory
49+
50+
- pwsh: |
51+
$signSrcPath = "$(BuildOutDir)"
52+
# Set signing src path variable
53+
$vstsCommandString = "vso[task.setvariable variable=signSrcPath]${signSrcPath}"
54+
Write-Host "sending " + $vstsCommandString
55+
Write-Host "##$vstsCommandString"
56+
$signOutPath = "$(Build.SourcesDirectory)\signed\Microsoft.PowerShell.Archive"
57+
$null = New-Item -ItemType Directory -Path $signOutPath
58+
# Set signing out path variable
59+
$vstsCommandString = "vso[task.setvariable variable=signOutPath]${signOutPath}"
60+
Write-Host "sending " + $vstsCommandString
61+
Write-Host "##$vstsCommandString"
62+
# Set path variable for guardian codesign validation
63+
$vstsCommandString = "vso[task.setvariable variable=GDN_CODESIGN_TARGETDIRECTORY]${signOutPath}"
64+
Write-Host "sending " + $vstsCommandString
65+
Write-Host "##$vstsCommandString"
66+
displayName: Setup variables for signing
67+
68+
- pwsh: |
69+
Copy-Item -Path "$(signSrcPath)\*" -Destination "$(signOutPath)"
70+
displayName: Fake Signing
71+
72+
- pwsh: |
73+
Compress-Archive -Path "$(signOutPath)\*" -DestinationPath "$(System.ArtifactsDirectory)\Microsoft.PowerShell.Archive.zip"
74+
displayName: Create Microsoft.PowerShell.Archive.zip
75+
76+
- publish: $(System.ArtifactsDirectory)\Microsoft.PowerShell.Archive.zip
77+
artifact: SignedModule

Archive_v1/.travis.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
language: csharp
2+
3+
git:
4+
depth: 1000
5+
6+
os:
7+
- linux
8+
sudo: required
9+
dist: trusty
10+
11+
matrix:
12+
fast_finish: true
13+
14+
install:
15+
- git clone https://github.com/PowerShell/PowerShell.git
16+
- pushd PowerShell/tools
17+
- ./install-powershell.sh
18+
- popd
19+
20+
script:
21+
- ulimit -n 4096
22+
- pwsh -File ./TravisCI.ps1
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
@{
2+
GUID="eb74e8da-9ae2-482a-a648-e96550fb8733"
3+
Author="Microsoft Corporation"
4+
CompanyName="Microsoft Corporation"
5+
Copyright="© Microsoft Corporation. All rights reserved."
6+
Description='PowerShell module for working with ZIP archives.'
7+
ModuleVersion="1.2.5"
8+
PowerShellVersion="3.0"
9+
FunctionsToExport = @('Compress-Archive', 'Expand-Archive')
10+
DotNetFrameworkVersion = 4.5
11+
CmdletsToExport = @()
12+
AliasesToExport = @()
13+
NestedModules="Microsoft.PowerShell.Archive.psm1"
14+
HelpInfoURI = 'https://go.microsoft.com/fwlink/?LinkId=2113631'
15+
}

0 commit comments

Comments
 (0)