@@ -23,7 +23,7 @@ var cwd = process.cwd();
23
23
var projectId = process . env . GCLOUD_PROJECT ;
24
24
25
25
function getPath ( dir ) {
26
- return path . join ( cwd , '/../../appengine/ ' , dir ) ;
26
+ return path . join ( cwd , '/../../' , dir ) ;
27
27
}
28
28
29
29
function changeScaling ( dir ) {
@@ -42,38 +42,38 @@ function changeScaling(dir) {
42
42
43
43
var sampleTests = [
44
44
{
45
- dir : 'analytics' ,
45
+ dir : 'appengine/ analytics' ,
46
46
cmd : 'node' ,
47
47
args : [ 'app.js' ] ,
48
48
msg : 'Event tracked.'
49
49
} ,
50
50
{
51
- dir : 'bower' ,
51
+ dir : 'appengine/ bower' ,
52
52
cmd : 'node' ,
53
53
args : [ 'server.js' ] ,
54
54
msg : 'Express.js + Bower on Google App Engine.'
55
55
} ,
56
56
{
57
- dir : 'cloudsql' ,
57
+ dir : 'appengine/ cloudsql' ,
58
58
cmd : 'node' ,
59
59
args : [ 'app.js' ] ,
60
60
msg : 'Last 10 visits:' ,
61
61
TRAVIS : true
62
62
} ,
63
63
{
64
- dir : 'datastore' ,
64
+ dir : 'appengine/ datastore' ,
65
65
cmd : 'node' ,
66
66
args : [ 'app.js' ] ,
67
67
msg : 'Last 10 visits:'
68
68
} ,
69
69
{
70
- dir : 'disk' ,
70
+ dir : 'appengine/ disk' ,
71
71
cmd : 'node' ,
72
72
args : [ 'app.js' ] ,
73
73
msg : 'Instance:'
74
74
} ,
75
75
{
76
- dir : 'express' ,
76
+ dir : 'appengine/ express' ,
77
77
deploy : true ,
78
78
promote : true ,
79
79
cmd : 'node' ,
@@ -82,75 +82,75 @@ var sampleTests = [
82
82
TRAVIS_NODE_VERSION : '0.10'
83
83
} ,
84
84
{
85
- dir : 'express-memcached-session' ,
85
+ dir : 'appengine/ express-memcached-session' ,
86
86
cmd : 'node' ,
87
87
args : [ 'server.js' ] ,
88
88
msg : 'Viewed' ,
89
89
TRAVIS_NODE_VERSION : '0.10'
90
90
} ,
91
91
{
92
- dir : 'geddy' ,
92
+ dir : 'appengine/ geddy' ,
93
93
cmd : 'node' ,
94
94
args : [ 'node_modules/geddy/bin/cli.js' ] ,
95
95
msg : 'Hello, World! Geddy.js on Google App Engine.' ,
96
96
TRAVIS_NODE_VERSION : 'stable'
97
97
} ,
98
98
{
99
- dir : 'grunt' ,
99
+ dir : 'appengine/ grunt' ,
100
100
deploy : true ,
101
101
cmd : 'node' ,
102
102
args : [ './src/bin/www' ] ,
103
103
msg : 'Hello World! Express.js + Grunt.js on Google App Engine.' ,
104
104
TRAVIS_NODE_VERSION : '0.12'
105
105
} ,
106
106
{
107
- dir : 'hello-world' ,
107
+ dir : 'appengine/ hello-world' ,
108
108
cmd : 'node' ,
109
109
args : [ 'app.js' ] ,
110
110
msg : 'Hello, world!'
111
111
} ,
112
112
{
113
- dir : 'kraken' ,
113
+ dir : 'appengine/ kraken' ,
114
114
cmd : 'node' ,
115
115
args : [ 'server.js' ] ,
116
116
msg : 'Hello World! Kraken.js on Google App Engine.' ,
117
117
code : 304
118
118
} ,
119
119
{
120
- dir : 'logging' ,
120
+ dir : 'appengine/ logging' ,
121
121
cmd : 'node' ,
122
122
args : [ 'app.js' ] ,
123
123
msg : 'Logged'
124
124
} ,
125
125
{
126
- dir : 'loopback' ,
126
+ dir : 'appengine/ loopback' ,
127
127
cmd : 'node' ,
128
128
args : [ 'server/server.js' ] ,
129
129
msg : 'LoopBack.js on Google App Engine.' ,
130
130
code : 304
131
131
} ,
132
132
{
133
- dir : 'mailgun' ,
133
+ dir : 'appengine/ mailgun' ,
134
134
cmd : 'node' ,
135
135
args : [ 'app.js' ] ,
136
136
msg : 'Express.js + Mailgun on Google App Engine.'
137
137
} ,
138
138
{
139
- dir : 'memcached' ,
139
+ dir : 'appengine/ memcached' ,
140
140
cmd : 'node' ,
141
141
args : [ 'app.js' ] ,
142
142
msg : 'Value:' ,
143
143
test : / V a l u e : \d \. \d + /
144
144
} ,
145
145
{
146
- dir : 'mongodb' ,
146
+ dir : 'appengine/ mongodb' ,
147
147
cmd : 'node' ,
148
148
args : [ 'server.js' ] ,
149
149
msg : 'IPs:' ,
150
150
TRAVIS : true
151
151
} ,
152
152
{
153
- dir : 'pubsub' ,
153
+ dir : 'appengine/ pubsub' ,
154
154
cmd : 'node' ,
155
155
args : [ 'app.js' ] ,
156
156
msg : 'Messages received by this instance:' ,
@@ -160,31 +160,31 @@ var sampleTests = [
160
160
}
161
161
} ,
162
162
{
163
- dir : 'redis' ,
163
+ dir : 'appengine/ redis' ,
164
164
cmd : 'node' ,
165
165
args : [ 'server.js' ] ,
166
166
msg : '127.0.0.1'
167
167
} ,
168
168
{
169
- dir : 'restify' ,
169
+ dir : 'appengine/ restify' ,
170
170
cmd : 'node' ,
171
171
args : [ 'server.js' ] ,
172
172
msg : 'Hello World! Restify.js on Google App Engine.'
173
173
} ,
174
174
{
175
- dir : 'sendgrid' ,
175
+ dir : 'appengine/ sendgrid' ,
176
176
cmd : 'node' ,
177
177
args : [ 'app.js' ] ,
178
178
msg : 'Express.js + Sendgrid on Google App Engine.'
179
179
} ,
180
180
{
181
- dir : 'static-files' ,
181
+ dir : 'appengine/ static-files' ,
182
182
cmd : 'node' ,
183
183
args : [ 'app.js' ] ,
184
184
msg : 'This is a static file serving example.'
185
185
} ,
186
186
{
187
- dir : 'storage' ,
187
+ dir : 'appengine/ storage' ,
188
188
cmd : 'node' ,
189
189
args : [ 'app.js' ] ,
190
190
msg : '<title>Static Files</title>' ,
@@ -193,24 +193,30 @@ var sampleTests = [
193
193
}
194
194
} ,
195
195
{
196
- dir : 'webpack' ,
196
+ dir : 'appengine/ webpack' ,
197
197
cmd : 'node' ,
198
198
args : [ 'server.js' ] ,
199
199
msg : 'Express.js + Webpack on Google App Engine.'
200
200
} ,
201
201
{
202
- dir : 'websockets' ,
202
+ dir : 'appengine/ websockets' ,
203
203
cmd : 'node' ,
204
204
args : [ 'app.js' ] ,
205
205
msg : 'Echo demo'
206
+ } ,
207
+ {
208
+ dir : 'containerengine/hello-world' ,
209
+ cmd : 'node' ,
210
+ args : [ 'server.js' ] ,
211
+ msg : 'Hello Kubernetes!'
206
212
}
207
213
] ;
208
214
209
215
if ( process . env . TRAVIS_NODE_VERSION === '0.10' ) {
210
216
// For some reason the "npm install" step for the Sails sample doesn't work on
211
217
// Travis when using Node.js stable. It works locally, however.
212
218
sampleTests . push ( {
213
- dir : 'sails' ,
219
+ dir : 'appengine/ sails' ,
214
220
cmd : 'node' ,
215
221
args : [ 'app.js' ] ,
216
222
msg : 'Hello World! Sails.js on Google App Engine.' ,
@@ -220,22 +226,22 @@ if (process.env.TRAVIS_NODE_VERSION === '0.10') {
220
226
221
227
if ( process . env . TRAVIS_NODE_VERSION === 'stable' ) {
222
228
sampleTests . push ( {
223
- dir : 'hapi' ,
229
+ dir : 'appengine/ hapi' ,
224
230
cmd : 'node' ,
225
231
args : [ 'index.js' ] ,
226
232
msg : 'Hello World! Hapi.js on Google App Engine.' ,
227
233
TRAVIS_NODE_VERSION : 'stable'
228
234
} ) ;
229
235
sampleTests . push ( {
230
- dir : 'koa' ,
236
+ dir : 'appengine/ koa' ,
231
237
deploy : true ,
232
238
cmd : 'node' ,
233
239
args : [ '--harmony' , 'app.js' ] ,
234
240
msg : 'Hello World! Koa.js on Google App Engine.' ,
235
241
TRAVIS_NODE_VERSION : 'stable'
236
242
} ) ;
237
243
sampleTests . push ( {
238
- dir : 'parse-server' ,
244
+ dir : 'appengine/ parse-server' ,
239
245
cmd : 'node' ,
240
246
args : [ 'server.js' ] ,
241
247
msg : 'Hello, world!' ,
@@ -293,7 +299,7 @@ var port = 8080;
293
299
sampleTests . forEach ( function ( sample ) {
294
300
sample . env = sample . env || { } ;
295
301
sample . env . PORT = port ;
296
- if ( sample . dir === 'parse-server' ) {
302
+ if ( sample . dir === 'appengine/ parse-server' ) {
297
303
sample . env . SERVER_URL = sample . env . SERVER_URL + port + '/parse' ;
298
304
}
299
305
port ++ ;
0 commit comments