flex-template-web/circle.yml
2017-03-14 12:49:18 +02:00

29 lines
705 B
YAML

# https://circleci.com/docs/install-and-use-yarn/
machine:
node:
version: 6.10.0
environment:
YARN_VERSION: 0.21.3
PATH: "${PATH}:${HOME}/.yarn/bin:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
dependencies:
pre:
- |
if [[ ! -e ~/.yarn/bin/yarn || $(yarn --version) != "${YARN_VERSION}" ]]; then
echo "Download and install Yarn."
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version $YARN_VERSION
else
echo "The correct version of Yarn is already installed."
fi
override:
- yarn install
cache_directories:
- ~/.yarn
- ~/.cache/yarn
test:
pre:
- yarn run build
override:
- yarn run test-ci