forked from searchkit/searchkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
49 lines (41 loc) · 1.25 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
general:
branches:
ignore:
- gh-pages
machine:
environment:
PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
node:
version: 8.6.0
general:
artifacts:
- packages/searchkit/coverage
- packages/searchkit/lib
- packages/searchkit/release
- packages/searchkit-e2e-tests/cypress/video
- packages/searchkit-e2e-tests/cypress/screenshots
dependencies:
pre:
- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
deployment:
release:
tag: /^v[0-9]+(\.[0-9]+)$/
commands:
- (cd ./packages/searchkit && npm publish)
beta:
tag: /^v\d+\.\d+\.\d+\-\d+$/
commands:
- (cd ./packages/searchkit && npm publish --tag beta)
test:
override:
- (cd ./packages/searchkit && npm run test:ci)
- (cd ./packages/searchkit-e2e-tests && npm run test:ci)
post:
- (cd ./packages/searchkit && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls)
- cp packages/searchkit-e2e-tests/e2e-results.xml $CIRCLE_TEST_REPORTS/cypress
- cp packages/searchkit/unit-results.xml $CIRCLE_TEST_REPORTS/jest
pre:
- mkdir -p $CIRCLE_TEST_REPORTS/{jest,cypress}
- npm install lerna -g
- lerna bootstrap --concurrency 1 --loglevel verbose
- lerna run build