Permalink
Browse files

Fix tests

  • Loading branch information...
1 parent 59d259f commit 41c6bdba8d11f889ec7a817f621fb9ef74b1ee42 @1602 committed Oct 15, 2012
Showing with 10 additions and 7 deletions.
  1. +1 −1 lib/rockout.js
  2. +1 −1 package.json
  3. +8 −5 test/roco_test.js
View
@@ -275,7 +275,7 @@ Roco.prototype.set = function (key, def) {
Roco.prototype.load = function (file) {
if (!file) throw new Error('File not specified');
if (!fs.existsSync(file)) return;
- console.log('loading', file);
+ // console.log('loading', file);
var code = coffee.compile(fs.readFileSync(file).toString());
var dir = path.dirname(file);
var fn = new Function('roco', '__dirname', 'with(roco){(function(){ ' + code + ' })();}');
View
@@ -2,7 +2,7 @@
"author": "Anatoliy Chakkaev <rpm1602 at gmail dot com>",
"name": "roco",
"description": "Deploy app to remote server via ssh",
- "version": "0.0.5",
+ "version": "0.0.6",
"repository": {
"type": "git",
"url": "git@github.com:1602/roco.git"
View
@@ -1,5 +1,7 @@
-var semicov = require('semicov');
-semicov.init('lib'); process.on('exit', semicov.report);
+if (!process.env.TRAVIS) {
+ var semicov = require('semicov');
+ semicov.init('lib'); process.on('exit', semicov.report);
+}
var rockout = require('../lib/rockout');
var roco;
@@ -16,15 +18,16 @@ exports['perform non-existant task'] = function (test) {
roco.abort = abort;
test.done();
};
- rockout.perform(['test']);
+ rockout.perform('test');
};
exports['define and perform task'] = function (test) {
roco.ns = 'ns';
roco.task('test', function () {
test.done();
});
- rockout.perform(['staging', 'ns:test']);
+ roco.env = 'staging';
+ rockout.perform('ns:test');
};
exports['run command on remote server and locally'] = function (test) {
@@ -51,7 +54,7 @@ exports['run command on remote server and locally'] = function (test) {
});
return proc;
};
- rockout.perform(['test']);
+ rockout.perform('test');
};
exports['print list of commands'] = function (test) {

0 comments on commit 41c6bdb

Please sign in to comment.