appveyor-runner
v0.1.0
Published
Run multiple node.js versions on one AppVeyor worker.
Downloads
3
Readme
appveyor-runner
Run multiple node.js versions on one AppVeyor worker.
Installation
npm install --save-dev appveyor-runner
Usage
- Create file
appveyor-runner.yml
under project folder. Reference schema and example for file content. - Write
node_modules\.bin\appveyor-runner
undertest_script
block inappveyor.yml
file.
Schema
working_dir
- The working directory to run scripts. Default toprocess.cwd()
folder.bin_dir
- The directory to store the node.js binaries. Default tonode_bin
folder underworking_dir
.log_dir
- The directory to store execute ouput. Default tonode_log
folder underworking_dir
.version
- The target execute node.js version array. Semver versions are supported. Default is empty array.script
- The execute script array. Thenode_modules/.bin
path is appended toPATH
environment variable automatically. Default is empty script array.
For the directories, either relative or absolute path are OK. If it is relative path, it is resolved to appveyor-run.yml
file directory.
Example
appveyor-runner.yml
working_dir: .\path\to\working_dir
bin_dir: C:\path\to\node_dir
log_dir: C:\path\to\log_dir
version:
- 4.x
- 6.x
script:
- node --version
- npm --version
- npm run test
appveyor.yml
install:
- npm -g install npm@3 && set PATH=%APPDATA%\npm;%PATH%
- npm install
test_script:
- node_modules\.bin\appveyor-runner
build: off
Limitation
- The test cases must be run in different context. It means, two test cases cannot write to the same file. Use temporary file or folder to resolve this issue.
- The project cannot use packages depending on node-gyp. The node-gyp package couples with specified node.js version. No effective solution is found for this issue.
Changelog
We use the Github release page to manage changelog.
License
MIT License.