Permalink
Browse files

Update DscResource.Template (#411)

- Update appveyor.yml to support publishing of examples.
  • Loading branch information...
johlju committed Jul 6, 2018
1 parent ccbce0f commit 2265cb337631c39c263bdc5ce8526e0eb55578c6
Showing with 22 additions and 3 deletions.
  1. +22 −3 DscResource.Template/appveyor.yml
@@ -14,6 +14,20 @@
#---------------------------------#
version: 1.0.{build}.0 # TODO: Modify version so it fits your versioning.
environment:
gallery_api:
# TODO: Change to the correct API key if using PowerShell Gallery deploy task.
# If you wish to use this to publish your own module you'd need to set your
# own API key (encrypted by https://ci.appveyor.com/tools/encrypt).
#
# This API key can only be decrypted by the PowerShell Team's AppVeyor account,
# and can only be used for resource modules under the DSC Resource Kit.
secure: 9ekJzfsPCDBkyLrfmov83XbbhZ6E2N3z+B/Io8NbDetbHc6hWS19zsDmy7t0Vvxv
init:
# Needed for publishing of examples, build worker defaults to core.autocrlf=input.
- git config --global core.autocrlf true
install:
- git clone https://github.com/PowerShell/DscResource.Tests
- ps: Write-Verbose -Message "PowerShell version $($PSVersionTable.PSVersion)" -Verbose
@@ -37,11 +51,16 @@ test_script:
# to Codecov (see https://codecov.io/).
Invoke-AppveyorTestScriptTask -CodeCoverage -CodeCovIo -ExcludeTag @()
# scripts to run before deployment
after_test:
- ps: |
Import-Module -Name "$env:APPVEYOR_BUILD_FOLDER\DscResource.Tests\AppVeyor.psm1"
Invoke-AppveyorAfterTestTask
#---------------------------------#
# deployment configuration #
#---------------------------------#
# scripts to run before deployment
deploy_script:
- ps: |
Invoke-AppveyorAfterTestTask
- ps: |
Invoke-AppVeyorDeployTask

0 comments on commit 2265cb3

Please sign in to comment.