mirror of
https://github.com/openstf/stf
synced 2025-10-03 17:59:28 +02:00
APKs can now be drag & dropped to the device screen, which will install the application. Still lacking UI, and the app doesn't get launched.
This commit is contained in:
parent
5771507fc9
commit
dfe3d97de3
12 changed files with 280 additions and 8 deletions
37
lib/cli.js
37
lib/cli.js
|
@ -374,6 +374,9 @@ program
|
|||
.option('-a, --auth-url <url>'
|
||||
, 'URL to auth client'
|
||||
, String)
|
||||
.option('-r, --storage-url <url>'
|
||||
, 'URL to storage client'
|
||||
, String)
|
||||
.option('-u, --connect-sub <endpoint>'
|
||||
, 'sub endpoint'
|
||||
, cliutil.list)
|
||||
|
@ -389,6 +392,9 @@ program
|
|||
if (!options.authUrl) {
|
||||
this.missingArgument('--auth-url')
|
||||
}
|
||||
if (!options.storageUrl) {
|
||||
this.missingArgument('--storage-url')
|
||||
}
|
||||
if (!options.connectSub) {
|
||||
this.missingArgument('--connect-sub')
|
||||
}
|
||||
|
@ -401,6 +407,7 @@ program
|
|||
, secret: options.secret
|
||||
, ssid: options.ssid
|
||||
, authUrl: options.authUrl
|
||||
, storageUrl: options.storageUrl
|
||||
, groupTimeout: 600 * 1000
|
||||
, endpoints: {
|
||||
sub: options.connectSub
|
||||
|
@ -410,6 +417,24 @@ program
|
|||
})
|
||||
})
|
||||
|
||||
program
|
||||
.command('storage-temp')
|
||||
.description('start temp storage')
|
||||
.option('-p, --port <port>'
|
||||
, 'port (or $PORT)'
|
||||
, Number
|
||||
, process.env.PORT || 7100)
|
||||
.option('--public-ip <ip>'
|
||||
, 'public ip for global access'
|
||||
, String
|
||||
, ip())
|
||||
.action(function(options) {
|
||||
require('./roles/storage/temp')({
|
||||
port: options.port
|
||||
, publicIp: options.publicIp
|
||||
})
|
||||
})
|
||||
|
||||
program
|
||||
.command('local [serial..]')
|
||||
.description('start everything locally')
|
||||
|
@ -449,6 +474,10 @@ program
|
|||
, 'app port'
|
||||
, Number
|
||||
, 7100)
|
||||
.option('--storage-port <port>'
|
||||
, 'storage port'
|
||||
, Number
|
||||
, 7102)
|
||||
.option('--provider <name>'
|
||||
, 'provider name (or os.hostname())'
|
||||
, String
|
||||
|
@ -518,6 +547,8 @@ program
|
|||
, '--port', options.appPort
|
||||
, '--secret', options.authSecret
|
||||
, '--auth-url', util.format('http://localhost:%d/', options.authPort)
|
||||
, '--storage-url'
|
||||
, util.format('http://localhost:%d/', options.storagePort)
|
||||
, '--connect-sub', options.bindAppPub
|
||||
, '--connect-push', options.bindAppPull
|
||||
].concat((function() {
|
||||
|
@ -527,6 +558,12 @@ program
|
|||
}
|
||||
return extra
|
||||
})()))
|
||||
|
||||
// storage
|
||||
, procutil.fork(__filename, [
|
||||
'storage-temp'
|
||||
, '--port', options.storagePort
|
||||
])
|
||||
]
|
||||
|
||||
function shutdown() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue