forked from open-telemetry/opentelemetry-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
135 lines (131 loc) · 3.07 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
version: 2
node_unit_tests: &node_unit_tests
steps:
- checkout
- run:
name: Create Checksum
command: sh .circleci/checksum.sh /tmp/checksums.txt
- restore_cache:
keys:
- npm-cache-{{ checksum "/tmp/checksums.txt" }}
- run:
name: Install Dependencies
command: yarn install
- save_cache:
key: npm-cache-{{ checksum "/tmp/checksums.txt" }}
paths:
- ./node_modules
- ./yarn.lock
- ./packages/*/node_modules
- ./packages/*/yarn.lock
- run:
name: Compile code
command: yarn compile
- run:
name: Unit tests
command: yarn test
- run:
name: report coverage
command: yarn codecov
browsers_unit_tests: &browsers_unit_tests
steps:
- checkout
- run:
name: Install Dependencies
command: yarn install
- run:
name: Compile code
command: yarn compile
- run:
name: Unit tests
command: yarn test:browser
- run:
name: report coverage
command: yarn codecov:browser
jobs:
lint:
docker:
- image: node:12
steps:
- checkout
- run:
name: Install modules and dependencies.
command: yarn install
- run:
name: Check code style and linting
command: yarn run check
docs:
docker:
- image: node:12
steps:
- checkout
- run:
name: Install modules and dependencies.
command: yarn install
- run:
name: Docs tests
command: yarn docs-test
- persist_to_workspace:
root: packages/opentelemetry-types/docs
paths: out
docs-deploy:
docker:
- image: node:12
steps:
- checkout
- attach_workspace:
at: packages/opentelemetry-types/docs
- run:
name: Install and configure dependencies
command: |
npm install -g --silent [email protected]
git config user.email [email protected]
git config user.name "ci-build"
- add_ssh_keys:
fingerprints:
- "08:7b:ae:2d:8f:dd:a7:4e:ad:f6:44:cc:99:55:34:a1"
- run:
name: Deploy docs to gh-pages branch
command: gh-pages --dist packages/opentelemetry-types/docs/out
node8:
docker:
- image: node:8
<<: *node_unit_tests
node10:
docker:
- image: node:10
<<: *node_unit_tests
node11:
docker:
- image: node:11
<<: *node_unit_tests
node12:
docker:
- image: node:12
<<: *node_unit_tests
node12-browsers:
docker:
- image: circleci/node:12-browsers
<<: *browsers_unit_tests
workflows:
version: 2
build:
jobs:
- lint
- docs:
filters:
tags:
only: /.*/
- docs-deploy:
requires:
- docs
filters:
tags:
only: /^v\d+\.\d+\.\d+$/
branches:
ignore: /.*/
- node8
- node10
- node11
- node12
- node12-browsers