Skip to content

Commit

Permalink
Update to use template files (dsccommunity#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
johlju authored Sep 22, 2018
1 parent 8e65927 commit b5d39bc
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Needed for publishing of examples, build worker defaults to core.autocrlf=input.
* text eol=crlf
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
"powershell.codeFormatting.ignoreOneLineBlock": false,
"powershell.codeFormatting.preset": "Custom",
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true
"files.insertFinalNewline": true,
"powershell.scriptAnalysis.settingsPath": ".vscode\\analyzersettings.psd1"
}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ Defaults to false.

### Unreleased

* Update appveyor.yml to use the default template.
* Added default template files .gitattributes, and .vscode settings.

### 1.2.0.0

* Converted appveyor.yml to install Pester from PSGallery instead of from Chocolatey.
Expand Down
17 changes: 13 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@
#---------------------------------#

version: 1.1.{build}.0
environment:
gallery_api:
secure: 9ekJzfsPCDBkyLrfmov83XbbhZ6E2N3z+B/Io8NbDetbHc6hWS19zsDmy7t0Vvxv

install:
- git clone https://github.com/PowerShell/DscResource.Tests
- ps: Write-Verbose -Message "PowerShell version $($PSVersionTable.PSVersion)" -Verbose
- ps: Import-Module "$env:APPVEYOR_BUILD_FOLDER\DscResource.Tests\AppVeyor.psm1"
- ps: Import-Module -Name "$env:APPVEYOR_BUILD_FOLDER\DscResource.Tests\AppVeyor.psm1"
- ps: Invoke-AppveyorInstallTask

#---------------------------------#
Expand All @@ -23,11 +27,16 @@ test_script:
- ps: |
Invoke-AppveyorTestScriptTask -CodeCoverage -CodeCovIo
# 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 b5d39bc

Please sign in to comment.