-
Notifications
You must be signed in to change notification settings - Fork 1
/
circle.yml
34 lines (32 loc) · 799 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
machine:
environment:
PATH: "${PATH}:${HOME}/.yarn/bin:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
YARN_VERSION: 1.3.2
node:
version: 8.9.0
services:
- docker
dependencies:
cache_directories:
- ~/.yarn
- ~/.cache/yarn
- ./node_modules
pre:
- |
if [[ ! -e ~/.yarn/bin/yarn || $(yarn --version) != "${YARN_VERSION}" ]]; then
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version $YARN_VERSION
fi
- yarn global add greenkeeper-lockfile
override:
- yarn
test:
pre:
- greenkeeper-lockfile-update
override:
- yarn danger
- yarn lint
- yarn deps:unused
- yarn test --coverage --runInBand --ci
post:
- greenkeeper-lockfile-upload
- yarn codecov ./artifacts/coverage-final.json