Skip to content

Commit

Permalink
add appveyor.yml (#9)
Browse files Browse the repository at this point in the history
* add appveyor.yml
* require node v4
  • Loading branch information
msimerson committed Nov 17, 2016
1 parent 7401b12 commit 457252d
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 6 deletions.
4 changes: 4 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

# 1.0.7 - 2016-11-17

* update tests for appveyor (Windows) compatibility #9

# 1.0.6 - 2016-11-10

* handle invalid .ini lines properly (skip them)
Expand Down
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
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"name": "haraka-config",
"license": "MIT",
"description": "Haraka's config file loader",
"version": "1.0.6",
"version": "1.0.7",
"homepage": "http://haraka.github.io",
"repository": {
"type": "git",
"url": "git@github.com:haraka/haraka-config.git"
},
"main": "config.js",
"engines": {
"node": ">= 0.12.16"
"node": ">= 4"
},
"dependencies": {
"js-yaml": "^3.5.3"
Expand Down
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 457252d

Please sign in to comment.