From 64ab0ff3a4f60e912c686e62cc5cec1a2c0c3482 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 | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 appveyor.yml diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 000000000..ff423d98b --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,35 @@ +clone_depth: 50 + +init: + - ps: iex (new-object net.webclient).downloadstring('https://get.scoop.sh') + +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 + - scoop install shellcheck + +build: false + +before_test: + - ps: rm test/install_command.bats + - ps: rm test/plugin_list_all_command.bats + - ps: rm test/remove_command.bats + - ps: rm test/reshim_command.bats + - ps: rm test/uninstall_command.bats + - ps: rm test/update_command.bats + - ps: rm test/utils.bats + - ps: rm test/version_commands.bats + - ps: rm test/which_command.bats + +test_script: + - shellcheck -V + - bash lint.sh + - bash -c 'bats test'