-
Notifications
You must be signed in to change notification settings - Fork 118
/
Copy pathcircle.yml
38 lines (35 loc) · 924 Bytes
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
machine:
node:
version: 7.10.0
environment:
YARN_VERSION: 0.24.6
PATH: "${PATH}:${HOME}/.yarn/bin:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
dependencies:
pre:
- |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
if [[ ! -e ~/.yarn/bin/yarn || $(yarn --version) != "${YARN_VERSION}" ]]; then
echo "Download and install Yarn."
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version $YARN_VERSION
else
echo "The correct version of Yarn is already installed."
fi
yarn global add codecov
override:
- yarn install --no-progress --no-emoji
cache_directories:
- "node_modules"
- ~/.yarn
- ~/.yarn-cache
test:
override:
- yarn run lint
- yarn run flow
- yarn run test -- --coverage
- codecov
deployment:
npm:
tag: /v[0-9]+(\.[0-9]+)*/
commands:
- npm publish