From a318fd338b85209197ad1cac481dc57cb4827c68 Mon Sep 17 00:00:00 2001 From: Mathias Buus Date: Fri, 2 Mar 2018 19:13:06 +0100 Subject: [PATCH] add appveyor --- README.md | 1 + appveyor.yml | 43 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 appveyor.yml diff --git a/README.md b/README.md index 5cf46bd..e6dad13 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ npm install turbo-net ``` [![build status](https://travis-ci.org/mafintosh/turbo-net.svg?branch=master)](https://travis-ci.org/mafintosh/turbo-net) +[![Build status](https://ci.appveyor.com/api/projects/status/1rbh090naan36163/branch/master?svg=true)](https://ci.appveyor.com/project/mafintosh/turbo-net/branch/master) ## Usage diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..1a66206 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,43 @@ +build: false + +skip_branch_with_pr: true + +environment: + matrix: + - nodejs_version: "Current" + - nodejs_version: "9" + - nodejs_version: "8" + +configuration: Release +platform: + - x86 + - x64 + +install: + - SET PATH=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin;%PATH% + - ps: Install-Product node $env:nodejs_version $env:platform + - npm install + +test_script: + - node --version + - npm --version + - npm test + +after_test: + - ps: If ($env:nodejs_version -eq "Current") { npm run prebuild } + +artifacts: + - path: prebuilds + name: $(APPVEYOR_REPO_TAG_NAME)-win-$(PLATFORM) + type: zip + +deploy: + - provider: GitHub + artifact: /.*\.zip/ + draft: false + prerelease: true + auth_token: + secure: Rrnh1ZoAghC7oVlq46X4NNJFi5TKEjy/Z/9IsCKdAjEDPvz2RjeuFLQlHYJUAy60 + on: + appveyor_repo_tag: true + nodejs_version: "Current"