Skip to content

Attempt to test in Windows with Appveyor #338

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Test against this version of Node.js
environment:
nodejs_version: "5"

# 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
1 change: 1 addition & 0 deletions test/bin-readme.js
Original file line number Diff line number Diff line change
@@ -38,6 +38,7 @@ test('readme command', function (group) {
var before = fs.readFileSync(path.join(d, 'README.md'), 'utf-8');
documentation(['readme index.js --diff-only -s API'], {cwd: d}, function (err, stdout, stderr) {
var after = fs.readFileSync(path.join(d, 'README.md'), 'utf-8');
t.equal(stderr, '');
t.ok(err);
t.notEqual(err.code, 0, 'exit nonzero');
t.same(after, before, 'readme unchanged');