mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[ci/chromedriver] cache and restore in packer cache (#31047)
When building the packer cache, we should download the chromedriver install and make it available to master builds.
This commit is contained in:
parent
9623c64547
commit
8f986619cf
2 changed files with 14 additions and 1 deletions
|
@ -13,6 +13,10 @@ cd "x-pack";
|
|||
yarn gulp prepare;
|
||||
cd -;
|
||||
|
||||
# cache the chromedriver bin
|
||||
mkdir -p ".chromedriver/master"
|
||||
cp node_modules/chromedriver/bin/chromedriver .chromedriver/master/
|
||||
|
||||
# archive cacheable directories
|
||||
mkdir -p "$HOME/.kibana/bootstrap_cache"
|
||||
tar -cf "$HOME/.kibana/bootstrap_cache/master.tar" \
|
||||
|
@ -22,4 +26,5 @@ tar -cf "$HOME/.kibana/bootstrap_cache/master.tar" \
|
|||
x-pack/plugins/*/node_modules \
|
||||
x-pack/plugins/reporting/.chromium \
|
||||
test/plugin_functional/plugins/*/node_modules \
|
||||
.es;
|
||||
.es \
|
||||
.chromedriver;
|
||||
|
|
|
@ -104,6 +104,14 @@ yarnGlobalDir="$(yarn global bin)"
|
|||
export PATH="$PATH:$yarnGlobalDir"
|
||||
hash -r
|
||||
|
||||
###
|
||||
### use the chromedriver cache if it exists
|
||||
###
|
||||
if [ -x "$dir/.chromedriver/master/chromedriver" ]; then
|
||||
export CHROMEDRIVER_FILEPATH="$dir/.chromedriver/master/chromedriver"
|
||||
export CHROMEDRIVER_SKIP_DOWNLOAD=true
|
||||
fi
|
||||
|
||||
###
|
||||
### install dependencies
|
||||
###
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue