Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

get travis username

  • Loading branch information...
commit 2a20b3a3e29307945ad11073c1f66e89f5bd221a 1 parent a466c75
John Lindal authored
View
1  .gitignore
@@ -0,0 +1 @@
+*.ready
View
2  README.md
@@ -15,7 +15,7 @@ Installation
Install nodejs and then install these packages:
cd YUI-3-Stockpile
- npm install yui express request hbs gzip \
+ npm install yui@3.5.1 express request hbs gzip \
optimist formidable long-stack-traces
Usage
View
9 combo-dev.js
@@ -42,6 +42,10 @@ var argv = require('optimist')
boolean: true,
describe: 'Turn on debugging (causes leaks)'
})
+ .option('test',
+ {
+ describe: 'Name of file to create when initialization is finished'
+ })
.argv;
var config = Y.JSON.parse(mod_fs.readFileSync(argv.config, 'utf8'));
@@ -163,4 +167,9 @@ app.get('/combo', function(req, res)
Y.log('listening on port ' + config.port, 'debug', 'combo-dev');
app.listen(config.port);
+if (argv.test)
+{
+ mod_fs.writeFileSync(argv.test, 'ready', 'utf8');
+}
+
});
View
9 combo.js
@@ -78,6 +78,10 @@ var argv = optimist
default: defaults.debug,
describe: 'Turn on debugging (crashes when receive request from combo-dev.js)'
})
+ .option('test',
+ {
+ describe: 'Name of file to create when initialization is finished'
+ })
.argv;
var debug = argv.debug;
@@ -249,4 +253,9 @@ app.get('/combo', function(req, res)
Y.log('listening on port ' + argv.port, 'debug', 'combo');
app.listen(argv.port);
+if (argv.test)
+{
+ mod_fs.writeFileSync(argv.test, 'ready', 'utf8');
+}
+
});
View
9 manager.js
@@ -106,6 +106,10 @@ var argv = optimist
default: defaults.debug,
describe: 'Turn on debugging'
})
+ .option('test',
+ {
+ describe: 'Name of file to create when initialization is finished'
+ })
.argv;
var debug = argv.debug;
@@ -136,4 +140,9 @@ var admin = require('./server/admin.js').init(Y, mod_express, argv);
Y.log('admin on ' + admin.type + '://' + log_addr + ':' + admin.port, 'debug', 'manager');
admin.app.listen(admin.port, argv.address);
+if (argv.test)
+{
+ mod_fs.writeFileSync(argv.test, 'ready', 'utf8');
+}
+
});
View
16 test/config/combo-dev.json
@@ -0,0 +1,16 @@
+{
+ "port":8667,
+
+ "combo":"http://localhost:8666/combo?",
+
+ "root":"test/dev",
+ "code":
+ {
+ "sp-test-blah.js": "sp-test-blah/sp-test-blah-debug.js",
+ "sp-test-foo.css": "sp-test-foo/ace/sp-test-foo.css"
+ },
+ "image":
+ {
+ "warn.png": "sp-test-foo/ace/error.png"
+ }
+}
View
4 test/config/combo.json
@@ -0,0 +1,4 @@
+{
+ "port":8666,
+ "path":"./test/files"
+}
View
12 test/config/manager-localhost.json
@@ -0,0 +1,12 @@
+{
+ "address": "127.0.0.1",
+ "port": 8668,
+ "path": "./test/files",
+ "combo": "http://localhost:8666/combo?",
+
+ "auth": "localhost",
+ "adminport": 8669,
+
+ "admins": ["lindalj"],
+ "mailserver": "yahoo-inc.com"
+}
View
11 test/config/manager-testing.json
@@ -0,0 +1,11 @@
+{
+ "address": "127.0.0.1",
+ "port": 8668,
+ "path": "./test/files",
+ "combo": "http://localhost:8666/combo?",
+
+ "auth": "testing",
+ "adminport": 8669,
+
+ "admins": ["lindalj"]
+}
View
21 test/main
@@ -1,10 +1,27 @@
#!/bin/sh
-npm install yui express request hbs gzip optimist formidable;
+if [[ "$1" != "--fast" ]]; then
+ npm install yui@3.5.1 express request hbs gzip optimist formidable;
+fi
-node manager.js &
+echo ===;
+whoami;
+echo ===;
+
+rm -rf test/init;
+mkdir test/init;
+
+rm -rf test/files;
+mkdir test/files;
+
+node manager.js --config test/config/manager-localhost.json --test test/init/manager.ready &
+node combo.js --config test/config/combo.json --test test/init/combo.ready &
+node combo-dev.js --config test/config/combo-dev.json --test test/init/combo-dev.ready &
+
+perl -e 'sleep(1) until (-e "./test/init/manager.ready" && -e "./test/init/combo.ready" && -e "./test/init/combo-dev.ready")';
cd test;
+
perl test-upload.pl &&
perl test-browse.pl &&
perl test-combo.pl &&
Please sign in to comment.
Something went wrong with that request. Please try again.