Skip to content

Commit

Permalink
add appveyor.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Nov 17, 2016
1 parent 7401b12 commit 69e8d11
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[![Build Status][ci-img]][ci-url]
[![Coverage Status][cov-img]][cov-url]
[![Code Climate][clim-img]][clim-url]
[![Windows Build status][apv-img]][apv-url]

# haraka-config

Expand Down Expand Up @@ -289,3 +290,5 @@ Haraka will be unable to update them after changes.
[cov-url]: https://codecov.io/github/haraka/haraka-config?branch=master
[clim-img]: https://codeclimate.com/github/haraka/haraka-config/badges/gpa.svg
[clim-url]: https://codeclimate.com/github/haraka/haraka-config
[apv-img]: https://ci.appveyor.com/api/projects/status/lme4otppxe22me0j/branch/master?svg=true
[apv-url]: https://ci.appveyor.com/project/msimerson/haraka-config/branch/master
21 changes: 21 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: 1.0.{build}

environment:
nodejs_version: "4"

# Install scripts. (runs after repo cloning)
install:
# install the latest stable version of Node.js
- ps: Install-Product node $env:nodejs_version
# install modules
- npm install
- npm install -g grunt-cli

# Post-install test scripts.
test_script:
# Output useful info for debugging.
- node --version
- npm --version
- node run_tests

build: off
8 changes: 4 additions & 4 deletions test/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ exports.config = {
'setUp' : setUp,
'new' : function (test) {
test.expect(1);
test.ok(/haraka\-config\/test\/config$/.test(this.config.root_path));
test.equal(path.resolve('test','config'), this.config.root_path);
test.done();
},
'module_config' : function (test) {
test.expect(2);
var c = this.config.module_config('foo', 'bar');
test.equal(c.root_path, 'foo/config');
test.equal(c.overrides_path, 'bar/config');
test.equal(c.root_path, path.join('foo','config'));
test.equal(c.overrides_path, path.join('bar','config'));
test.done();
},
};
Expand All @@ -49,7 +49,7 @@ exports.config_path = {
clearRequireCache();
var config = require('../config');
// console.log(config);
test.equal(config.root_path, '/tmp/config');
test.equal(config.root_path, path.join('/tmp','config'));
test.done();
},
'config_path process.env.NODE_ENV': function (test) {
Expand Down

0 comments on commit 69e8d11

Please sign in to comment.