2017-07-09 10:26:06 +02:00
|
|
|
machine:
|
|
|
|
environment:
|
2017-12-18 07:51:27 +01:00
|
|
|
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:
|
2018-01-13 18:28:07 +01:00
|
|
|
- git config --global user.email "verdacciobot@users.noreply.github.com"
|
|
|
|
- git config --global user.name "Verdaccio bot 🤖 for Deployments"
|
2017-10-21 10:46:14 +02:00
|
|
|
- '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
|
2018-04-25 07:04:40 +02:00
|
|
|
- nvm install 10
|
2017-07-09 10:26:06 +02:00
|
|
|
|
|
|
|
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-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
|
2018-04-25 07:04:40 +02:00
|
|
|
- nvm alias default 10
|
|
|
|
- yarn run test
|
2018-02-08 22:24:34 +01:00
|
|
|
- yarn run test:e2e
|
2018-01-18 06:49:19 +01:00
|
|
|
- yarn run coverage:publish
|
2018-01-13 18:28:07 +01:00
|
|
|
- echo "machine github.com login verdacciobot password $GITHUB_TOKEN" > ~/.netrc
|
|
|
|
- cd website && yarn install && GIT_USER=verdacciobot USE_SSH=false yarn run publish-gh-pages
|
2017-10-19 22:12:59 +02:00
|
|
|
deployment:
|
|
|
|
production:
|
2018-01-07 19:16:44 +01:00
|
|
|
tag: /(v)?[0-9]+(\.[0-9]+)*/
|
2017-10-19 22:12:59 +02:00
|
|
|
commands:
|
|
|
|
- ./scripts/publish.sh
|
2018-01-07 19:16:44 +01:00
|
|
|
alpha-release:
|
|
|
|
tag: /.*-alpha.*/
|
|
|
|
commands:
|
|
|
|
- ./scripts/alpha-publish.sh
|
|
|
|
beta-release:
|
|
|
|
tag: /.*-beta.*/
|
|
|
|
commands:
|
|
|
|
- ./scripts/beta-publish.sh
|
2017-10-19 22:12:59 +02:00
|
|
|
general:
|
|
|
|
branches:
|
|
|
|
ignore:
|
2018-01-09 18:44:40 +01:00
|
|
|
- gh-pages
|
2018-01-07 17:58:22 +01:00
|
|
|
- l10n_master
|
2018-01-09 18:44:40 +01:00
|
|
|
- /release\/.*/
|