Skip to content

Commit

Permalink
Setup yarn in current shell [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
joshdover committed Sep 26, 2018
1 parent 143e7d8 commit ed9e47e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/scripts/jenkins_report_failed_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,15 @@

set -e

###
### "install" yarn into this shell
###
cacheDir="${CACHE_DIR:-"$HOME/.kibana"}"
yarnVersion="$(node -e "console.log(String(require('./package.json').engines.yarn || '').replace(/^[^\d]+/,''))")"
yarnDir="$cacheDir/yarn/$yarnVersion"
export PATH="$yarnDir/bin:$PATH"
yarnGlobalDir="$(yarn global bin)"
export PATH="$PATH:$yarnGlobalDir"
hash -r

xvfb-run "$(FORCE_COLOR=0 yarn bin)/grunt" jenkins:report;

0 comments on commit ed9e47e

Please sign in to comment.