Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
48 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
language: node_js | ||
sudo: false | ||
node_js: | ||
- 7 | ||
- 8 | ||
script: | ||
- make travis | ||
- npm i | ||
- npm run ci | ||
after_script: | ||
- npm install coveralls@2 && cat ./coverage/lcov.info | coveralls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,7 @@ | ||
'use strict'; | ||
|
||
const EOL = require('os').EOL; | ||
const util = require('xutil'); | ||
const childProcess = require('child_process'); | ||
|
||
const _ = util.merge({}, util); | ||
|
||
_.exec = function(cmd, opts) { | ||
return new Promise((resolve, reject) => { | ||
childProcess.exec(cmd, _.merge({ | ||
maxBuffer: 1024 * 512, | ||
wrapArgs: false | ||
}, opts || {}), (err, stdout) => { | ||
if (err) { | ||
return reject(err); | ||
} | ||
resolve(stdout.trim()); | ||
}); | ||
}); | ||
}; | ||
|
||
module.exports = _; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,20 @@ | ||
'use strict'; | ||
|
||
var gradle = require('..'); | ||
const gradle = require('..'); | ||
const assert = require('assert'); | ||
|
||
gradle({ | ||
cwd: process.cwd() | ||
describe('test', () => { | ||
it('should be ok', () => { | ||
assert.ok(gradle); | ||
gradle({ | ||
cwd: process.cwd() | ||
}) | ||
.then(d => { | ||
console.log(d); | ||
}) | ||
.catch(e => { | ||
console.log(e); | ||
}); | ||
}); | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
--require should | ||
--reporter spec | ||
--reporter spec |