forked from ReactiveDB/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
69 lines (66 loc) · 1.78 KB
/
config.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
defaults: &defaults
working_directory: ~/ReactiveDB
docker:
- image: circleci/node:10
version: 2
jobs:
build:
<<: *defaults
steps:
- checkout
- run: echo 'export PATH=${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin' >> $BASH_ENV
- run: curl --compressed -o- -L https://yarnpkg.com/install.sh | bash
- run: sudo ln -sf ~/.yarn/bin/yarn /usr/local/bin/yarn
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- run:
name: yarn-with-greenkeeper
command: |
sudo yarn global add greenkeeper-lockfile@1
yarn
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- ~/.cache/yarn
- run: greenkeeper-lockfile-update
- run: npm run build_all
- run: greenkeeper-lockfile-upload
- persist_to_workspace:
root: ~/ReactiveDB
paths:
- ./*
test:
<<: *defaults
steps:
- attach_workspace:
at: ~/ReactiveDB
- run: npm run lint
- run: npm run check_circular_dependencies
- run: npm run cover
- run: npm run test_O1
- run:
name: test-coverage
command: cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
deploy:
<<: *defaults
steps:
- attach_workspace:
at: ~/ReactiveDB
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
- run: yarn publish_all
workflows:
version: 2
build_test_and_deploy:
jobs:
- build
- test:
requires:
- build
- deploy:
requires:
- test
filters:
tags:
only: /.*/
branches:
only: master