Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update readme with usage etc.

  • Loading branch information...
commit 2181a6b2fd32925926591f608a50d07a2d8658fb 1 parent 5c87d34
@isaacs isaacs authored
Showing with 42 additions and 2 deletions.
  1. +28 −0 README.md
  2. +2 −2 config.js
  3. +12 −0 server.js
View
28 README.md
@@ -1 +1,29 @@
The drone in the node-remote-tester hive.
+
+## USAGE
+
+On the drone:
+
+1. Create an SSL key and cert, and put them in `ssl/server.{key,crt}`.
+ (Alternatively, edit the `config.js` to specify their location.)
+2. Start the drone server.
+
+On the hub:
+
+1. `git remote add drone https://droneserver:1337/node`
+2. `GIT_SSL_NO_VERIFY=1 git push --all drone`
+3. `curl -X POST -d <commit-ish> https://droneserver:1337/test`
+
+The output from the checkout and test will stream to the client.
+
+## TODO
+
+1. We should be able to use this for libuv as well.
+
+2. It'd be nice to skip the clean step sometimes, or maybe
+ only run it if a build fails or something. It's
+ a bit slow otherwise.
+
+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.
View
4 config.js
@@ -32,11 +32,11 @@ if (process.platform === 'win32') {
exports.buildCmd = 'make'
var cpus = require('os').cpus()
- var jobs = cpus && cpus.length || 4
+ var jobs = cpus && cpus.length || 2
exports.buildArgs = ['-j' + jobs]
exports.cleanCmd = 'make'
- exports.cleanArgs = ['distclean']
+ exports.cleanArgs = ['clean']
exports.testCmd = 'make'
exports.testArgs = ['test-all']
View
12 server.js
@@ -1,3 +1,15 @@
+// TODO:
+//
+// 1. we should be able to use this for libuv as well.
+//
+// 2. it'd be nice to skip the clean step sometimes, or
+// maybe only run it if a build fails or something. It's
+// a bit slow otherwise.
+//
+// 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.
+
var http = require('http')
var https = require('https')
var spawn = require('child_process').spawn
Please sign in to comment.
Something went wrong with that request. Please try again.