diff --git a/.npmignore b/.npmignore index 691c47545..6f3be8eb3 100644 --- a/.npmignore +++ b/.npmignore @@ -3,3 +3,4 @@ src/ .git* .vagrant .npmignore +appveyor.yml diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 000000000..2638b881a --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,26 @@ +# Test against this version of Node.js +environment: + nodejs_version: "0.10" + +cache: + - node_modules -> **\package.json # preserve "node_modules" directory in the root of build folder but will reset it if packages.json is modified + - C:\Users\appveyor\AppData\Roaming\npm -> **\package.json + - C:\Users\appveyor\AppData\Roaming\npm-cache -> **\package.json + +# Install scripts. (runs after repo cloning) +install: + # Get the latest stable version of Node.js or io.js + - ps: Install-Product node $env:nodejs_version + # install modules + - npm install + +# Post-install test scripts. +test_script: + # Output useful info for debugging. + - node --version + - npm --version + # run tests + - npm test + +# Don't actually build. +build: off