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