Skip to content

Commit 5a99b9f

Browse files
committed
Clean up build for new build machines
1 parent 1799c3f commit 5a99b9f

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

UnitySetup/UnitySetup.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ PrivateData = @{
114114
# ReleaseNotes = ''
115115

116116
# External dependent modules of this module
117-
ExternalModuleDependencies = @('powershell-yaml')
117+
# ExternalModuleDependencies = @()
118118

119119
} # End of PSData hashtable
120120

appveyor.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,8 @@ install:
1111
- ps: >-
1212
Install-PackageProvider -Name NuGet -Force | Out-Null
1313
14-
Install-Module PowerShellGet -Scope CurrentUser -Force
15-
16-
Remove-Module PowerShellGet -Force
17-
18-
Import-Module PowerShellGet -Force
14+
Install-Module 'powershell-yaml' -Scope CurrentUser -Force -AllowClobber
1915
build_script:
2016
- ps: .\build.ps1 -Revision "$env:APPVEYOR_BUILD_NUMBER"
2117
deploy_script:
22-
- ps: start powershell -wait { Publish-Module -Path .\UnitySetup -NugetAPIKey $env:NugetAPIKey }
18+
- ps: Publish-Module -Path .\UnitySetup -NugetAPIKey $env:NugetAPIKey

build.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
param([int]$Revision = 0)
2-
$currentVersion = Test-ModuleManifest .\UnitySetup\UnitySetup.psd1 | Select-Object -ExpandProperty Version
2+
$currentVersion = Test-ModuleManifest -ErrorAction Stop .\UnitySetup\UnitySetup.psd1 | Select-Object -ExpandProperty Version
33
Write-Host "Current Module Version: $currentVersion"
44
$newVersion = New-Object System.Version($currentVersion.Major, $currentVersion.Minor, $Revision)
55

66
Write-Host "New Module Version:$newVersion"
7-
Update-ModuleManifest -ModuleVersion $newVersion -Path .\UnitySetup\UnitySetup.psd1
7+
Update-ModuleManifest -ErrorAction Stop -ModuleVersion $newVersion -Path .\UnitySetup\UnitySetup.psd1

0 commit comments

Comments
 (0)