Skip to content

Commit

Permalink
Merge pull request #13 from vors/appveyor
Browse files Browse the repository at this point in the history
Appveyor
  • Loading branch information
BrianFarnhill committed Apr 29, 2015
2 parents 5ac4b54 + 5ea3a80 commit 590f410
Showing 1 changed file with 15 additions and 20 deletions.
35 changes: 15 additions & 20 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
version: 0.2.0.{build}

install:
- cinst -y pester
- git clone https://github.com/PowerShell/DscResource.Tests

build: off

test_script:
- ps: |
$testResultsFile = ".\TestsResults.xml"
Expand All @@ -13,23 +16,15 @@ test_script:
}
deploy: off
on_finish:
- ps: >-
$stagingDirectory = (Resolve-Path ..).Path
$pwd = Join-Path $pwd "modules\xSharePoint"
Remove-Item (Join-Path $pwd "xSharePoint.pssproj")
$manifest = Join-Path $pwd "xSharePoint.psd1"
(Get-Content $manifest -Raw).Replace("0.2.0", $env:APPVEYOR_BUILD_VERSION) | Out-File $manifest
$zipFile = Join-Path $stagingDirectory "$(Split-Path $pwd -Leaf).zip"
Add-Type -assemblyname System.IO.Compression.FileSystem
[System.IO.Compression.ZipFile]::CreateFromDirectory($pwd, $zipFile)
@(
(ls $zipFile)
) | % { Push-AppveyorArtifact $_.FullName }
- ps: |
$stagingDirectory = (Resolve-Path ..).Path
$pwd = Join-Path $pwd "modules\xSharePoint"
Remove-Item (Join-Path $pwd "xSharePoint.pssproj")
$manifest = Join-Path $pwd "xSharePoint.psd1"
(Get-Content $manifest -Raw).Replace("0.2.0", $env:APPVEYOR_BUILD_VERSION) | Out-File $manifest
$zipFile = Join-Path $stagingDirectory "$(Split-Path $pwd -Leaf).zip"
Add-Type -assemblyname System.IO.Compression.FileSystem
[System.IO.Compression.ZipFile]::CreateFromDirectory($pwd, $zipFile)
@(
(ls $zipFile)
) | % { Push-AppveyorArtifact $_.FullName }

0 comments on commit 590f410

Please sign in to comment.