From c22616687c1a2b5b9dbc38c44ab740ff5a80d177 Mon Sep 17 00:00:00 2001 From: Abhinav Kaushlya Date: Thu, 31 Jan 2019 18:27:20 +0530 Subject: [PATCH] appveyor.yml: Add support for Windows This runs the tests on Appveyor CI (basically windows) so as to keep it from breaking. Closes https://github.com/asdf-vm/asdf/issues/450 --- appveyor.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 appveyor.yml diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 000000000..4207491e1 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,18 @@ +clone_depth: 50 + +install: + - ps: Install-Product node $env:nodejs_version + - npm cache clear --force + - ps: >- + if ($env:nodejs_version -eq "4") { + npm install npm@latest-5 -g + } else { + npm install npm@latest -g + } + - npm --version + - npm install -g bats + +build: false + +test_script: + - C:\cygwin\bin\bash -lc "export PATH="/usr/bin:/usr/local/bin:/cygdrive/c/Users/appveyor/AppData/Roaming/npm" && cd $APPVEYOR_BUILD_FOLDER && bats test"