From 1ee6b0a2bb413e5d615f6491621d232931a47846 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Wed, 12 Sep 2018 13:41:49 -0700 Subject: [PATCH] Add appveyor test for powershell based installer --- .appveyor.yml | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index 28e513e..1395a81 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -1,11 +1,31 @@ environment: - matrix: - - PYTHON: "C:\\Python27" - - PYTHON: "C:\\Python33" + - TYPE: powershell + - TYPE: python + PYTHON_DIR: "C:\\Python27" + - TYPE: python + PYTHON_DIR: "C:\\Python33" build: off -test_script: - - "%PYTHON%\\python.exe install.py" - - "%PYTHON%\\python.exe install_test.py" +for: + - matrix: + only: + - TYPE: powershell + install: + - ps: $url = "https://raw.githubusercontent.com", $env:APPVEYOR_REPO_NAME, + $env:APPVEYOR_REPO_COMMIT, "install.ps1" -join "/" + - ps: iex (iwr $url) + test_script: + - ps: if (-not (Test-Path "~\.deno\bin\deno.exe")) { + throw "deno.exe not found in expected location" + } + - ps: deno --help + + - matrix: + only: + - TYPE: python + install: + - "%PYTHON_DIR%\\python.exe install.py" + test_script: + - "%PYTHON_DIR%\\python.exe install_test.py" \ No newline at end of file