Skip to content
This repository has been archived by the owner on Feb 8, 2019. It is now read-only.

Commit

Permalink
Remove dredd.txt and fail.txt.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Barham committed Aug 29, 2015
1 parent 2b78ce8 commit 08af2c8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 53 deletions.
10 changes: 5 additions & 5 deletions build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,22 @@
* under the License.
*
*/
var fs = require('fs'),
var colors = require('colors'),
jWorkflow = require('jWorkflow'),
quotes = require('./quotes'),
pack = require('./pack'),
clean = require('./clean'),
_c = require('./conf'),
compress = require('./compress'),
hosted = require('./targets/hosted');

colors.mode = "console";

function _done(error) {
if (error) {
process.stdout.write(fs.readFileSync(_c.THIRDPARTY + "fail.txt", "utf-8"));
process.stdout.write(error);
console.log("Build failed: ".red + error.toString().red);
process.exit(1);
} else {
process.stdout.write(fs.readFileSync(_c.THIRDPARTY + "dredd.txt", "utf-8"));
console.log("Build succeeded.".green);
quotes.random();
process.exit();
}
Expand Down
12 changes: 6 additions & 6 deletions build/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@
* under the License.
*
*/
var lint = require('./lint'),
var colors = require('colors'),
lint = require('./lint'),
build = require('./build'),
test = require('./test'),
fs = require('fs'),
_c = require('./conf'),
fail = fs.readFileSync(_c.THIRDPARTY + "fail.txt", "utf-8");
test = require('./test');

colors.mode = "console";

function ok(code) {
if (code !== 0) {
process.stdout.write(fail);
console.log('Deploy failed.'.red);
process.exit(code);
}
}
Expand Down
21 changes: 0 additions & 21 deletions thirdparty/dredd.txt

This file was deleted.

21 changes: 0 additions & 21 deletions thirdparty/fail.txt

This file was deleted.

0 comments on commit 08af2c8

Please sign in to comment.