Browse files

test repo files

  • Loading branch information...
1 parent bd5908a commit 888c506a092de9d7adbbcc087ea1a8728791cb05 @substack committed Mar 29, 2013
Showing with 27 additions and 0 deletions.
  1. +4 −0 test/repo/commit.sh
  2. +7 −0 test/repo/package.json
  3. +7 −0 test/repo/server.js
  4. +4 −0 test/repo/setup.sh
  5. +5 −0 test/repo/teardown.sh
View
4 test/repo/commit.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+sed -i 's/beep boop/rawr/g' server.js
+git add server.js
+git commit -m'rawr!'
View
7 test/repo/package.json
@@ -0,0 +1,7 @@
+{
+ "name": "ploy-test-repo",
+ "version": "0.0.0",
+ "scripts": {
+ "start": "node server.js"
+ }
+}
View
7 test/repo/server.js
@@ -0,0 +1,7 @@
+var http = require('http');
+var server = http.createServer(function (req, res) {
+ res.end('beep boop\n');
+});
+
+var port = process.argv[2] || process.env.PORT;
+server.listen(port);
View
4 test/repo/setup.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+git init .
+git add package.json server.js
+git commit -m'initial files'
View
5 test/repo/teardown.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+if test $(basename $PWD)="repo" -a -d .git; then
+ git reset --hard $(git log | grep ^commit | tail -n1 | sed 's/^commit //')
+ rm -rf .git
+fi

0 comments on commit 888c506

Please sign in to comment.