Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't run make clean. Too slow

  • Loading branch information...
commit 21ffdc6a23d140ccb911464c61d6c45a8e67164b 1 parent 0d1c8d8
@isaacs isaacs authored
Showing with 14 additions and 4 deletions.
  1. +14 −4 server.js
View
18 server.js
@@ -9,6 +9,12 @@
// 3. It'd be good if it removed the checkout folder
// when the git actions fail, but removing the whole
// checkout on test failure is too extreme.
+//
+// 4. Have a way for the drone to register itself with the
+// hub.
+//
+// 5. Dry it up. Maybe each command should be tied to a
+// specific path or something.
var http = require('http')
var https = require('https')
@@ -102,20 +108,24 @@ function fetch (co, res) {
}
function checkout (co, res) {
- pipeSpawn(gitCmd, ['checkout', co], {cwd: nodeCheckout},
- res, function () { clean(res) })
+ pipeSpawn(gitCmd, ['checkout', co], {cwd: nodeCheckout}, res, function () {
+ // TODO: only clean when requested
+ // clean(res)
+
+ return configure(res)
+ })
}
function clean (res) {
pipeSpawn(gitCmd, ['clean', '-fd'], {cwd: nodeCheckout}, res, function () {
pipeSpawn(cleanCmd, cleanArgs, {cwd: nodeCheckout}, res, function () {
- if (configCmd) configure(res)
- else build(res)
+ configure(res)
})
})
}
function configure (res) {
+ if (!configCmd) return build(res)
var cmd = path.resolve(nodeCheckout, configCmd)
pipeSpawn(cmd, configArgs, {cwd: nodeCheckout},
res, function () { build(res) })
Please sign in to comment.
Something went wrong with that request. Please try again.