Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
Merge pull request #423 from nebulon42/appveyor
Browse files Browse the repository at this point in the history
fix AppVeyor builds
  • Loading branch information
tmcw committed Feb 9, 2016
2 parents f9848d9 + b3c8f66 commit 21be5fb
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 5 deletions.
24 changes: 24 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Test against this versions of Node.js
environment:
matrix:
- nodejs_version: 2
- nodejs_version: 0.12
- nodejs_version: 0.10

# 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
10 changes: 5 additions & 5 deletions test/bincarto.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ var fs = require('fs');

describe('bin/carto', function() {
it('errors on no input', function(done) {
exec(bin, function(err, stdout, stderr) {
exec(util.format('node %s', bin), function(err, stdout, stderr) {
assert.equal(1, err.code);
assert.equal("carto: no input files ('carto -h or --help' for help)\n", stderr);
done();
});
});
it('renders mml', function(done) {
var file = path.join(__dirname, 'rendering', 'identity.mml');
exec(util.format('%s %s', bin, file), function(err, stdout, stderr) {
var file = path.join('test', 'rendering', 'identity.mml');
exec(util.format('node %s %s', bin, file), function(err, stdout, stderr) {
assert.ifError(err);
helper.compareToXMLFile(helper.resultFile(file), stdout, done, [
helper.removeAbsoluteImages,
Expand All @@ -25,8 +25,8 @@ describe('bin/carto', function() {
});
});
it('renders mss', function(done) {
var file = path.join(__dirname, 'rendering-mss', 'empty_name.mss');
exec(util.format('%s %s', bin, file), function(err, stdout, stderr) {
var file = path.join('test', 'rendering-mss', 'empty_name.mss');
exec(util.format('node %s %s', bin, file), function(err, stdout, stderr) {
assert.ifError(err);
var expected = file.replace(path.extname(file),'')+'.xml';
var expected_data = fs.readFileSync(expected, 'utf8');
Expand Down

0 comments on commit 21be5fb

Please sign in to comment.