Skip to content

Commit

Permalink
run tests on appveyor; closes #1813
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Jul 1, 2016
1 parent 8fe36a3 commit 78f36fc
Show file tree
Hide file tree
Showing 11 changed files with 37 additions and 11 deletions.
26 changes: 26 additions & 0 deletions appveyor.yml
@@ -0,0 +1,26 @@
environment:
matrix:
- nodejs_version: '6'
- nodejs_version: '4'
- nodejs_version: '0.12'
- nodejs_version: '0.10'
install:
- ps: Install-Product node $env:nodejs_version
- set CI=true
- set PATH=%APPDATA%\npm;c:\MinGW\bin;%PATH%
- set PHANTOMJS_CDNURL=https://cnpmjs.org/downloads
- npm install
- copy c:\MinGW\bin\mingw32-make.exe c:\MinGW\bin\make.exe
matrix:
fast_finish: true
build: off
version: '{build}'
shallow_clone: true
clone_depth: 1
test_script:
- node --version
- npm --version
- npm test
skip_commits:
message: /\[ci\s+skip\]/

2 changes: 1 addition & 1 deletion karma.conf.js
Expand Up @@ -41,7 +41,7 @@ module.exports = function(config) {
// TO RUN LOCALLY:
// Execute `CI=1 make test-browser`, once you've set the SAUCE_USERNAME and
// SAUCE_ACCESS_KEY env vars.
if (process.env.CI) {
if (process.env.CI && !process.env.APPVEYOR) {
// we can't run SauceLabs tests on PRs from forks on Travis cuz security.
if (process.env.TRAVIS) {
if (process.env.TRAVIS_REPO_SLUG === 'mochajs/mocha'
Expand Down
2 changes: 1 addition & 1 deletion test/integration/diffs.js
Expand Up @@ -15,7 +15,7 @@ function getExpectedOutput() {

describe('diffs', function() {
var diffs, expected;
this.timeout(1000);
this.timeout(2000);

before(function(done) {
run('diffs/diffs.js', ['-C'], function(err, res) {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/fixtures/regression/issue-1991.js
Expand Up @@ -39,7 +39,7 @@ for (var i = 0; i < numOfTests; i += 1) {

it('access a variable via a closure', function () {
// slow performance on older node.js versions
this.timeout(1000);
this.timeout(2000);
closureVar = new MemoryLeak();
});

Expand Down
2 changes: 1 addition & 1 deletion test/integration/hook.err.js
Expand Up @@ -3,7 +3,7 @@ var runMocha = require('./helpers').runMocha;
var splitRegExp = require('./helpers').splitRegExp;

describe('hook error handling', function() {
this.timeout(1000);
this.timeout(2000);

var lines;

Expand Down
2 changes: 1 addition & 1 deletion test/integration/hooks.js
Expand Up @@ -4,7 +4,7 @@ var splitRegExp = require('./helpers').splitRegExp;
var args = [];

describe('hooks', function() {
this.timeout(1000);
this.timeout(2000);

it('are ran in correct order', function(done) {
run('cascade.js', args, function(err, res) {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/multiple.done.js
Expand Up @@ -4,7 +4,7 @@ var args = [];

describe('multiple calls to done()', function() {
var res;
this.timeout(1000);
this.timeout(2000);

describe('from a spec', function() {
before(function(done) {
Expand Down
4 changes: 2 additions & 2 deletions test/integration/pending.js
Expand Up @@ -4,7 +4,7 @@ var args = [];

describe('pending', function() {
describe('pending specs', function() {
this.timeout(1000);
this.timeout(2000);

it('should be created by omitting a function', function(done) {
run('pending/spec.js', args, function(err, res) {
Expand All @@ -19,7 +19,7 @@ describe('pending', function() {
});

describe('synchronous skip()', function() {
this.timeout(1000);
this.timeout(2000);

describe('in spec', function() {
it('should immediately skip the spec and run all others', function(done) {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/regression.js
Expand Up @@ -4,7 +4,7 @@ var path = require('path');
var run = require('./helpers').runMocha;

describe('regressions', function() {
this.timeout(1000);
this.timeout(2000);

it('issue-1327: should run all 3 specs exactly once', function(done) {
var args = [];
Expand Down
2 changes: 1 addition & 1 deletion test/integration/timeout.js
Expand Up @@ -3,7 +3,7 @@ var run = require('./helpers').runMochaJSON;
var args = [];

describe('this.timeout()', function() {
this.timeout(1000);
this.timeout(2000);

it('is respected by sync and async suites', function(done) {
run('timeout.js', args, function(err, res) {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/uncaught.js
Expand Up @@ -3,7 +3,7 @@ var run = require('./helpers').runMochaJSON;
var args = [];

describe('uncaught exceptions', function() {
this.timeout(1000);
this.timeout(2000);

it('handles uncaught exceptions from hooks', function(done) {
run('uncaught.hook.js', args, function(err, res) {
Expand Down

0 comments on commit 78f36fc

Please sign in to comment.