forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Option to run kibana from build for CI" (elastic#19224)
* Revert "[DOCS] Removes redundant index.asciidoc files (elastic#19192)" This reverts commit d11b5aa. * Revert "[typescript] add typescript support for the server and browser (elastic#19104)" This reverts commit c611206. * Revert "Option to run kibana from build for CI (elastic#19125)" This reverts commit 5969860.
- Loading branch information
Showing
11 changed files
with
62 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 6 additions & 26 deletions
32
packages/kbn-test/src/functional_tests/lib/run_kibana_server.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,17 @@ | ||
import { resolve } from 'path'; | ||
import { KIBANA_ROOT, KIBANA_EXEC, KIBANA_EXEC_PATH } from './paths'; | ||
|
||
export async function runKibanaServer({ procs, config, options }) { | ||
const { installDir } = options; | ||
export async function runKibanaServer({ procs, config }) { | ||
const cliArgs = config.get('kibanaServerArgs') || []; | ||
|
||
// start the kibana server and wait for it to log "Server running" before resolving | ||
await procs.run('kibana', { | ||
cmd: getKibanaCmd(installDir), | ||
args: getCliArgs(config, installDir), | ||
cmd: KIBANA_EXEC, | ||
args: [KIBANA_EXEC_PATH, ...cliArgs], | ||
env: { | ||
FORCE_COLOR: 1, | ||
...process.env, | ||
}, | ||
cwd: installDir || KIBANA_ROOT, | ||
cwd: KIBANA_ROOT, | ||
wait: /Server running/, | ||
}); | ||
} | ||
|
||
function getKibanaCmd(installDir) { | ||
if (installDir) { | ||
return process.platform.startsWith('win') | ||
? resolve(installDir, 'bin/kibana.bat') | ||
: resolve(installDir, 'bin/kibana'); | ||
} | ||
|
||
return KIBANA_EXEC; | ||
} | ||
|
||
function getCliArgs(config, installDir) { | ||
const buildArgs = config.get('kbnTestServer.buildArgs') || []; | ||
const sourceArgs = config.get('kbnTestServer.sourceArgs') || []; | ||
const serverArgs = config.get('kbnTestServer.serverArgs') || []; | ||
|
||
return installDir | ||
? [...serverArgs, ...buildArgs] | ||
: [KIBANA_EXEC_PATH, ...serverArgs, ...sourceArgs]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters