first pass at fully functional test infrastructure to work with travis ci

This commit is contained in:
Jeff Lindsay
2013-06-23 02:31:32 -07:00
parent 3a6d2c4442
commit 946973b060
8 changed files with 68 additions and 12 deletions

View File

@@ -0,0 +1 @@
web: bin/node web.js

View File

@@ -0,0 +1,3 @@
#!/bin/bash
set -e
test "$(curl $1)" == "nodejs/express2"

View File

@@ -0,0 +1,11 @@
{
"name": "node-example",
"version": "0.0.1",
"dependencies": {
"express": "2.5.x"
},
"engines": {
"node": "0.8.x",
"npm": "1.1.x"
}
}

View File

@@ -0,0 +1,12 @@
var express = require('express');
var app = express.createServer(express.logger());
app.get('/', function(request, response) {
response.send('nodejs/express');
});
var port = process.env.PORT || 5000;
app.listen(port, function() {
console.log("Listening on " + port);
});