Install yarn when not there

This commit is contained in:
Patrick Niklaus 2017-04-07 07:47:41 +00:00
parent a59053df27
commit 46ce6b41a4

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)")