-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
/
config.yml
52 lines (43 loc) 路 1.47 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
version: 2.1
aliases:
- &restore-yarn-cache
key: v2-yarn-cache-{{ checksum "yarn.lock" }}
- &save-yarn-cache
paths:
- ~/.yarn/berry/cache
key: v2-yarn-cache-{{ checksum "yarn.lock" }}
- &artifact_babel
path: ~/babel/packages/babel-standalone/babel.js
- &artifact_babel_sourcemap
path: ~/babel/packages/babel-standalone/babel.js.map
- &artifact_babel_min
path: ~/babel/packages/babel-standalone/babel.min.js
- &artifact_babel_min_sourcemap
path: ~/babel/packages/babel-standalone/babel.min.js.map
executors:
node-executor:
docker:
- image: cimg/node:current
working_directory: ~/babel
jobs:
build-standalone:
executor: node-executor
steps:
- checkout
- restore_cache: *restore-yarn-cache
# Builds babel-standalone with the regular Babel config
# test-ci-coverage doesn't test babel-standalone, as trying to gather coverage
- run: NODE_ENV=production IS_PUBLISH=true make -j build-standalone-ci
# data for a JS file that's several megabytes large is bound to fail. Here,
# we just run the babel-standalone test separately.
- run: yarn jest "\-standalone/test"
- store_artifacts: *artifact_babel
- store_artifacts: *artifact_babel_sourcemap
- store_artifacts: *artifact_babel_min
- store_artifacts: *artifact_babel_min_sourcemap
- save_cache: *save-yarn-cache
workflows:
version: 2
build-standalone:
jobs:
- build-standalone