0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00
verdaccio/circle.yml
2017-10-21 10:46:14 +02:00

42 lines
1 KiB
YAML

machine:
environment:
YARN_VERSION: 0.27.5
PATH: "${PATH}:${HOME}/.yarn/bin:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
node:
version: 8
dependencies:
pre:
- 'echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc'
- |
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:
- yarn run pre:ci
- nvm alias default 6
- yarn run test:ci
- nvm alias default 4
- yarn run test:ci
- nvm alias default 8
- yarn run test:ci
- yarn run coverage:publish
deployment:
production:
tag: /(v)?[0-9]+(\.[0-9]+)*/
commands:
- ./scripts/publish.sh
general:
branches:
ignore:
- gh-pages # list of branches to ignore
- /release\/.*/ # or ignore regexes