verdaccio/circle.yml

43 lines
1.0 KiB
YAML
Raw Normal View History

2017-07-09 10:26:06 +02:00
machine:
environment:
YARN_VERSION: 1.3.2
2017-07-09 10:26:06 +02:00
PATH: "${PATH}:${HOME}/.yarn/bin:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
node:
2017-12-22 21:31:47 +01:00
version: 9
2017-07-09 10:26:06 +02:00
dependencies:
pre:
- 'echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc'
2017-07-09 10:26:06 +02:00
- |
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 6
2017-12-22 21:31:47 +01:00
- nvm install 8
2017-07-09 10:26:06 +02:00
cache_directories:
- ~/.yarn
- ~/.cache/yarn
- "node_modules"
override:
- yarn install --no-progress
test:
override:
- yarn run pre:ci
2017-07-09 10:26:06 +02:00
- nvm alias default 6
2017-11-01 17:47:20 +01:00
- yarn run test
2017-07-09 10:26:06 +02:00
- nvm alias default 8
2017-11-01 17:47:20 +01:00
- yarn run test
2017-12-04 07:04:10 +01:00
- nvm alias default 9
- yarn run test
deployment:
production:
tag: /(v)?[0-9]+(\.[0-9]+)*/
commands:
- ./scripts/publish.sh
general:
branches:
ignore:
- gh-pages # list of branches to ignore
- l10n_website
- /release\/.*/ # or ignore regexes