mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Kinda sneaky...since we already mutate the jest portion of the file system (target/kibana-coverage/jest) by dumping "jest unit" & "jest integration" coverage into the same "final" directory...go ahead an make "jest integration" use the same ran file designator as "jest unit". This saves me from having to add logic for this later on.
23 lines
559 B
Bash
Executable file
23 lines
559 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
xs=("$@")
|
|
|
|
uploadPrefix="gs://elastic-bekitzur-kibana-coverage-live/"
|
|
uploadPrefixWithTimeStamp="${uploadPrefix}${TIME_STAMP}/"
|
|
|
|
uploadBase() {
|
|
for x in 'src/dev/code_coverage/www/index.html' 'src/dev/code_coverage/www/404.html'; do
|
|
gsutil -m -q cp -r -a public-read -z js,css,html "${x}" "${uploadPrefix}"
|
|
done
|
|
}
|
|
|
|
uploadRest() {
|
|
for x in "${xs[@]}"; do
|
|
gsutil -m -q cp -r -a public-read -z js,css,html "target/kibana-coverage/${x}-combined" "${uploadPrefixWithTimeStamp}"
|
|
done
|
|
}
|
|
|
|
uploadBase
|
|
uploadRest
|