Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Commit

Permalink
Update DscResource.Template (#411)
Browse files Browse the repository at this point in the history
- Update appveyor.yml to support publishing of examples.
  • Loading branch information
johlju committed Jul 6, 2018
1 parent ccbce0f commit 2265cb3
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions DscResource.Template/appveyor.yml
Expand Up @@ -14,6 +14,20 @@
#---------------------------------# #---------------------------------#


version: 1.0.{build}.0 # TODO: Modify version so it fits your versioning. 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: install:
- git clone https://github.com/PowerShell/DscResource.Tests - git clone https://github.com/PowerShell/DscResource.Tests
- ps: Write-Verbose -Message "PowerShell version $($PSVersionTable.PSVersion)" -Verbose - ps: Write-Verbose -Message "PowerShell version $($PSVersionTable.PSVersion)" -Verbose
Expand All @@ -37,11 +51,16 @@ test_script:
# to Codecov (see https://codecov.io/). # to Codecov (see https://codecov.io/).
Invoke-AppveyorTestScriptTask -CodeCoverage -CodeCovIo -ExcludeTag @() 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 # # deployment configuration #
#---------------------------------# #---------------------------------#


# scripts to run before deployment
deploy_script: deploy_script:
- ps: | - ps: |
Invoke-AppveyorAfterTestTask Invoke-AppVeyorDeployTask

0 comments on commit 2265cb3

Please sign in to comment.