From 2df859c5f13d73682e8885fa3264bffb43393b57 Mon Sep 17 00:00:00 2001 From: isaacs Date: Wed, 30 Dec 2015 18:26:06 -0800 Subject: [PATCH] simplify appveyor.yml file Also adds a few details that make things go faster --- appveyor.yml | 43 +++++++++++++++---------------------------- 1 file changed, 15 insertions(+), 28 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 1ec1c9c6..8cb92d2b 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,33 +1,20 @@ -# http://www.appveyor.com/docs/appveyor-yml - -# Fix line endings in Windows. (runs before repo cloning) -init: - - git config --global core.autocrlf true - -# Test against these versions of Node.js. environment: matrix: - - nodejs_version: "0.10" - - nodejs_version: "0.12" - - nodejs_version: "4.2" - - nodejs_version: "5" - -# Install scripts. (runs after repo cloning) + - nodejs_version: '5' + - nodejs_version: '4' + - nodejs_version: '0.12' + - nodejs_version: '0.10' install: - - git rev-parse HEAD - - md C:\nc - - npm config set cache C:\nc - - npm version + - ps: Install-Product node :nodejs_version + - set CI=true + - npm -g install npm@latest + - set PATH=%APPDATA%\npm;%PATH% - npm install - -# Post-install test scripts. -test_script: - # Output useful info for debugging. - - npm version - - cmd: npm run test - -# Don't actually build. +matrix: + fast_finish: true build: off - -# Set build version format here instead of in the admin panel. -version: "{build}" +version: '{build}' +shallow_clone: true +clone_depth: 1 +test_script: + - npm test