diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..84bab2b --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,18 @@ +branches: + only: + - testappveyor + +environment: + matrix: + - nodejs_version: "6" + +install: + - ps: Install-Product node $env:nodejs_version + - npm install + +test_script: + - node --version + - npm --version + - npm run test + +build: off diff --git a/lib/utils.js b/lib/utils.js index 6e0bc6c..4ebbda8 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -294,7 +294,7 @@ module.exports = { if (process.platform === 'win32') { const binaryExt = path.extname(this.binary); - const mainModule = process.mainModule.filename; + const mainModule = process.env.APPVEYOR ? '_fixture' : process.mainModule.filename; full = `${mainModule}-${subCommand}`;