'use strict';
var jsrun = require('./');

jsrun.just('lint', [
  ['jshint', [
    'lib bin test index.js jsrunfile.js',
    ['--reporter', 'node_modules/jshint-stylish/stylish.js'],
    ['--exclude', 'node_modules']
  ]],
  '&&',
  ['jscs', 'lib bin test index.js']
]);

jsrun.just('mocha', ['mocha --reporter spec']);

var cover = [
  'istanbul', [
    ['cover', '_mocha'],
    ['--report', 'lcovonly -- -R spec']
  ]
];
jsrun.just('cover', cover);

// Can't write ['lint', 'cover'] because orchestrator runs them in parallel,
// which would mess up the console output.
jsrun.just('travis-test', ['lint'], cover.concat([
  '&&',
  'cat ./coverage/lcov.info',
  '|',
  'coveralls'
]));

jsrun.just('default', ['lint'], ['mocha --reporter spec']);

@@ -326,19 +326,16 @@
 over = %5B
-%0A  
 'istanbu
@@ -339,36 +339,23 @@
 nbul
-', %5B%0A    %5B'
+ 
 cover
-', '
+ 
 _mocha'%5D
 ,%0A  
@@ -354,205 +354,38 @@
 ha'%5D
-,%0A    %5B'--report', 'lcovonly -- -R spec'%5D%0A  %5D%0A%5D;%0Ajsrun.just('cover', cover);%0A%0A// Can't write %5B'lint', 'cover'%5D because orchestrator runs them in parallel,%0A// which would mess up the console output.
+;%0Ajsrun.just('cover', cover);%0A
 %0Ajsr
@@ -432,16 +432,55 @@
 oncat(%5B%0A
+  %5B'--report', 'lcovonly -- -R spec'%5D,%0A
   '&&',%0A

Update coverage scripts