/
config.yml
86 lines (78 loc) · 1.9 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
version: 2.1
jobs:
private-build-lint-test: &build-lint-test
docker:
- image: circleci/node # will be overridden
steps:
- checkout
- run:
name: Install dependencies
command: yarn
- run:
name: Compile
command: yarn build
- run:
name: Lint
command: yarn lint
- run:
name: Prettier
command: yarn prettier
- run:
name: Test
command: yarn test --ci --runInBand --testResultsProcessor=jest-junit
environment:
- JEST_JUNIT_ANCESTOR_SEPARATOR: ">"
- JEST_JUNIT_OUTPUT_DIR: "reports/jest"
- store_test_results:
path: reports/jest
"Node 8":
<<: *build-lint-test
docker:
- image: circleci/node:8
"Node 10":
<<: *build-lint-test
docker:
- image: circleci/node:10
"Node 12":
<<: *build-lint-test
docker:
- image: circleci/node:12
"Publish nightly build":
working_directory: ~/circleci
docker:
- image: circleci/node:10
steps:
- checkout
- run:
name: Authenticate with registry
command: echo "//registry.npmjs.com/:_authToken=$NPM_TOKEN" > ~/.npmrc
- run:
name: Install dependencies
command: yarn
- run:
name: Publish
command: yarn publish --no-git-tag-version --new-version `node scripts/getNightlyVersion.js` --tag nightly
workflows:
version: 2
"Node - supported versions":
jobs:
- "Node 8"
- "Node 10"
- "Node 12"
"Nightly build":
triggers:
- schedule:
cron: 05 7 * * *
filters:
branches:
only:
- master
jobs:
- "Node 8"
- "Node 10"
- "Node 12"
- "Publish nightly build":
requires:
- "Node 8"
- "Node 10"
- "Node 12"