Skip to content

Commit

Permalink
Update ci stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
h404bi committed Sep 27, 2018
1 parent 6ee7429 commit a29683a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
13 changes: 6 additions & 7 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@ version: '{branch}-{build}'
branches:
only:
- master
init:
- ps: (get-psprovider 'FileSystem').Home = $(pwd)
- ps: Install-PackageProvider Nuget -Force
- ps: Install-Module -Name Pester -Repository PSGallery -Force
install:
- ps: iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
- ps: $env:SCOOP_HOME = resolve-path (split-path (split-path (scoop which scoop)))
build: off
deploy: off
shallow_clone: true
cache:
- '%USERPROFILE%\Documents\WindowsPowerShell\Modules -> appveyor.yml'
install:
- ps: .\test\bin\init.ps1
test_script:
- ps: $result = invoke-pester -path test/ -outputfile TestResults.xml -outputformat NUnitXML -passthru; $env:failedcount = $result.failedcount
- ps: (new-object net.webclient).uploadfile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", (resolve-path ./TestResults.xml))
Expand Down
2 changes: 2 additions & 0 deletions test/bin/init.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
if(!$env:SCOOP_HOME) { $env:SCOOP_HOME = resolve-path (split-path (split-path (scoop which scoop))) }
. "$env:SCOOP_HOME\test\bin\init.ps1"
File renamed without changes.

0 comments on commit a29683a

Please sign in to comment.