Permalink
Browse files

turn off func testing on win CI

  • Loading branch information...
operatino committed Aug 16, 2015
1 parent 373aec3 commit 7c2d698a86cb23c41ead25cff9a56bd57cc08f16
Showing with 9 additions and 4 deletions.
  1. +4 −0 Gruntfile.js
  2. +2 −1 app.js
  3. +2 −2 appveyor.yml
  4. +1 −1 package.json
@@ -299,6 +299,10 @@ module.exports = function(grunt) {
'test-func'
]);
grunt.registerTask('ci-post-run-win', [
'test'
]);
/*
*
* Utils
3 app.js
@@ -33,6 +33,7 @@ commander
.option('--html', 'Turn on HTML parser on app start (requires installed and enabled parser).')
.option('--test', 'Run app with tests.')
.option('--no-watch', 'Run with disabled watcher.')
.option('--post-grunt [string]', 'Define Grunt command to run after app start', 'ci-post-run')
.parse(process.argv);
global.commander = commander;
@@ -230,7 +231,7 @@ if (!module.parent) {
if (commander.test) {
var spawn = require('cross-spawn');
spawn('./node_modules/grunt-cli/bin/grunt', ['ci-post-run', '--port='+port], {stdio: 'inherit'})
spawn('./node_modules/grunt-cli/bin/grunt', [commander.postGrunt, '--port='+port], {stdio: 'inherit'})
.on('close', function (code) {
if (code === 0) {
log.info('Test successful');
@@ -16,8 +16,8 @@ before_test: "git clone https://github.com/sourcejs/init.git user"
test_script:
- node --version && npm --version
- ps: "npm run ci-test # PowerShell" # Pass comment to PS for easier debugging
- cmd: "npm run ci-test-nw" # Run without watch because of CI bug
- ps: "npm run ci-test-win # PowerShell" # Pass comment to PS for easier debugging
- cmd: "npm run ci-test-win" # Run without watch because of CI bug
matrix:
fast_finish: true
@@ -58,7 +58,7 @@
"start": "node app",
"test": "grunt ci-pre-run && node app.js --test",
"ci-test": "grunt ci-pre-run && node app.js --test --log trace",
"ci-test-nw": "grunt ci-pre-run && node app.js --test --log trace --no-watch"
"ci-test-win": "grunt ci-pre-run && node app.js --post-grunt ci-post-run-win --test --log trace --no-watch"
},
"devDependencies": {
"assert": "~1.1.1",

0 comments on commit 7c2d698

Please sign in to comment.