2017-07-09 10:26:06 +02:00
|
|
|
machine:
|
|
|
|
environment:
|
|
|
|
YARN_VERSION: 0.27.5
|
|
|
|
PATH: "${PATH}:${HOME}/.yarn/bin:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
|
|
|
|
node:
|
|
|
|
version: 8
|
|
|
|
dependencies:
|
|
|
|
pre:
|
|
|
|
- |
|
|
|
|
if [[ ! -e ~/.yarn/bin/yarn || $(yarn --version) != "${YARN_VERSION}" ]]; then
|
|
|
|
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version $YARN_VERSION
|
|
|
|
fi
|
|
|
|
- nvm install 4
|
|
|
|
- nvm install 6
|
|
|
|
|
|
|
|
cache_directories:
|
|
|
|
- ~/.yarn
|
|
|
|
- ~/.cache/yarn
|
|
|
|
- "node_modules"
|
|
|
|
override:
|
|
|
|
- yarn install --no-progress
|
|
|
|
test:
|
|
|
|
override:
|
2017-07-22 18:21:49 +02:00
|
|
|
- yarn run pre:ci
|
2017-07-09 10:26:06 +02:00
|
|
|
- nvm alias default 6
|
2017-07-22 18:21:49 +02:00
|
|
|
- yarn run test:ci
|
2017-07-09 10:26:06 +02:00
|
|
|
- nvm alias default 4
|
2017-07-22 18:21:49 +02:00
|
|
|
- yarn run test:ci
|
2017-07-09 10:26:06 +02:00
|
|
|
- nvm alias default 8
|
2017-07-22 18:21:49 +02:00
|
|
|
- yarn run test:ci
|
|
|
|
- yarn run coverage:publish
|