Install yarn when not there

This commit is contained in:
Patrick Niklaus 2017-04-07 07:47:41 +00:00 committed by Patrick Niklaus
parent cfaadf198f
commit b82d21f856

View File

@ -192,6 +192,9 @@ before_install:
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
export JOBS=$((`sysctl -n hw.ncpu` + 1))
sudo mdutil -i off /
fi
- |
if [[ ! -f $(which yarn) ]]; then
npm install -g yarn
fi
- export PACKAGE_JSON_VERSION=$(node -e "console.log(require('./package.json').version)")