Skip to content

Commit

Permalink
Hapi and Parse-server only work on Node 4+.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdobry committed Feb 4, 2016
1 parent 843e8c8 commit d831992
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions test/appengine/all.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,6 @@ var sampleTests = [
msg: 'Hello World! Express.js + Grunt.js on Google App Engine.',
TRAVIS_NODE_VERSION: '0.12'
},
{
dir: 'hapi',
cmd: 'node',
args: ['index.js'],
msg: 'Hello World! Hapi.js on Google App Engine.'
},
{
dir: 'hello-world',
cmd: 'node',
Expand Down Expand Up @@ -138,16 +132,6 @@ var sampleTests = [
msg: 'Value:',
test: /Value: \d\.\d+/
},
{
dir: 'parse-server',
cmd: 'node',
args: ['server.js'],
msg: 'Hello, world!',
env: {
APP_ID: 'foo',
MASTER_KEY: 'bar'
}
},
{
dir: 'pubsub',
cmd: 'node',
Expand Down Expand Up @@ -218,8 +202,13 @@ if (process.env.TRAVIS_NODE_VERSION === '0.10') {
}

if (process.env.TRAVIS_NODE_VERSION === 'stable') {
// For some reason the "npm install" step for the Sails sample doesn't work on
// Travis when using Node.js stable. It works locally, however.
sampleTests.push({
dir: 'hapi',
cmd: 'node',
args: ['index.js'],
msg: 'Hello World! Hapi.js on Google App Engine.',
TRAVIS_NODE_VERSION: 'stable'
});
sampleTests.push({
dir: 'koa',
deploy: true,
Expand All @@ -228,6 +217,17 @@ if (process.env.TRAVIS_NODE_VERSION === 'stable') {
msg: 'Hello World! Koa.js on Google App Engine.',
TRAVIS_NODE_VERSION: 'stable'
});
sampleTests.push({
dir: 'parse-server',
cmd: 'node',
args: ['server.js'],
msg: 'Hello, world!',
TRAVIS_NODE_VERSION: 'stable',
env: {
APP_ID: 'foo',
MASTER_KEY: 'bar'
}
});
}

// Send a request to the given url and test that the response body has the
Expand Down

0 comments on commit d831992

Please sign in to comment.