2018-07-23 17:27:43 +08:00
|
|
|
version: 2
|
|
|
|
|
2018-07-23 17:49:54 +08:00
|
|
|
references:
|
|
|
|
container_config: &container_config
|
2018-07-23 17:27:43 +08:00
|
|
|
docker:
|
2020-07-09 15:35:19 +08:00
|
|
|
- image: circleci/node:14
|
2018-07-23 17:27:43 +08:00
|
|
|
working_directory: ~/ant-design
|
|
|
|
|
2018-07-23 18:20:55 +08:00
|
|
|
attach_workspace: &attach_workspace
|
|
|
|
attach_workspace:
|
|
|
|
at: ~/ant-design
|
|
|
|
|
2018-07-23 18:29:23 +08:00
|
|
|
react_16: &react_16
|
|
|
|
environment:
|
|
|
|
REACT: 16
|
2018-07-23 17:27:43 +08:00
|
|
|
|
2018-07-30 16:31:31 +08:00
|
|
|
workflow: &workflow
|
|
|
|
jobs:
|
|
|
|
- setup:
|
|
|
|
filters:
|
|
|
|
branches:
|
|
|
|
ignore: gh-pages
|
|
|
|
- dist:
|
|
|
|
requires:
|
2020-05-20 19:47:49 +08:00
|
|
|
- setup
|
2018-07-30 16:31:31 +08:00
|
|
|
- compile:
|
|
|
|
requires:
|
2020-05-20 19:47:49 +08:00
|
|
|
- setup
|
2018-07-30 16:31:31 +08:00
|
|
|
- lint:
|
|
|
|
requires:
|
|
|
|
- setup
|
|
|
|
- test_dist:
|
|
|
|
requires:
|
|
|
|
- dist
|
|
|
|
- test_lib:
|
|
|
|
requires:
|
|
|
|
- compile
|
|
|
|
- test_es:
|
|
|
|
requires:
|
|
|
|
- compile
|
|
|
|
- test_dom:
|
|
|
|
requires:
|
|
|
|
- setup
|
|
|
|
- test_node:
|
|
|
|
requires:
|
|
|
|
- setup
|
2019-08-18 18:58:13 +08:00
|
|
|
- check_metadata:
|
|
|
|
requires:
|
|
|
|
- setup
|
2018-07-30 16:31:31 +08:00
|
|
|
|
2018-07-23 17:49:54 +08:00
|
|
|
jobs:
|
2018-07-23 18:20:55 +08:00
|
|
|
setup:
|
2018-07-23 17:49:54 +08:00
|
|
|
<<: *container_config
|
2018-07-23 17:27:43 +08:00
|
|
|
steps:
|
2018-07-23 18:29:23 +08:00
|
|
|
- checkout
|
2018-07-23 17:49:54 +08:00
|
|
|
- run: node -v
|
|
|
|
- run: npm -v
|
2018-07-23 18:29:23 +08:00
|
|
|
- run: npm install
|
|
|
|
- run:
|
|
|
|
command: |
|
|
|
|
set +eo
|
|
|
|
npm ls
|
|
|
|
true
|
2018-07-23 18:20:55 +08:00
|
|
|
- persist_to_workspace:
|
|
|
|
root: ~/ant-design
|
2018-07-23 18:23:55 +08:00
|
|
|
paths:
|
2018-07-23 18:29:23 +08:00
|
|
|
- node_modules
|
2018-12-25 23:20:53 +08:00
|
|
|
- store_artifacts:
|
|
|
|
path: package-lock.json
|
2018-07-23 18:29:23 +08:00
|
|
|
|
|
|
|
dist:
|
|
|
|
<<: *container_config
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- *attach_workspace
|
|
|
|
- run: npm run dist
|
|
|
|
- run: node ./tests/dekko/dist.test.js
|
2019-08-28 14:14:00 +08:00
|
|
|
- run: npm run bundlesize
|
2018-07-23 18:29:23 +08:00
|
|
|
- persist_to_workspace:
|
|
|
|
root: ~/ant-design
|
|
|
|
paths:
|
|
|
|
- dist
|
|
|
|
|
|
|
|
compile:
|
|
|
|
<<: *container_config
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- *attach_workspace
|
|
|
|
- run: npm run compile
|
|
|
|
- run: node ./tests/dekko/lib.test.js
|
|
|
|
- persist_to_workspace:
|
|
|
|
root: ~/ant-design
|
|
|
|
paths:
|
|
|
|
- lib
|
|
|
|
- es
|
2018-07-23 18:20:55 +08:00
|
|
|
|
|
|
|
lint:
|
|
|
|
<<: *container_config
|
|
|
|
steps:
|
2018-07-23 18:29:23 +08:00
|
|
|
- checkout
|
2018-07-23 18:20:55 +08:00
|
|
|
- *attach_workspace
|
2018-07-23 17:27:43 +08:00
|
|
|
- run: npm run lint
|
|
|
|
|
2018-07-23 17:49:54 +08:00
|
|
|
test_dist:
|
|
|
|
<<: *container_config
|
2018-07-23 18:29:23 +08:00
|
|
|
<<: *react_16
|
2018-07-23 17:27:43 +08:00
|
|
|
steps:
|
2018-07-23 18:29:23 +08:00
|
|
|
- checkout
|
2018-07-23 18:20:55 +08:00
|
|
|
- *attach_workspace
|
2018-07-23 18:29:23 +08:00
|
|
|
- run:
|
2018-08-01 10:53:06 +08:00
|
|
|
command: npm test -- -w 1
|
2018-07-23 18:29:23 +08:00
|
|
|
environment:
|
|
|
|
LIB_DIR: dist
|
2018-07-23 17:27:43 +08:00
|
|
|
|
2018-07-23 17:49:54 +08:00
|
|
|
test_lib:
|
|
|
|
<<: *container_config
|
2018-07-23 18:29:23 +08:00
|
|
|
<<: *react_16
|
2018-07-23 17:27:43 +08:00
|
|
|
steps:
|
2018-07-23 18:29:23 +08:00
|
|
|
- checkout
|
2018-07-23 18:20:55 +08:00
|
|
|
- *attach_workspace
|
2018-07-23 18:29:23 +08:00
|
|
|
- run:
|
2018-08-01 10:53:06 +08:00
|
|
|
command: npm test -- -w 1
|
2018-07-23 18:29:23 +08:00
|
|
|
environment:
|
|
|
|
LIB_DIR: lib
|
2018-07-23 17:27:43 +08:00
|
|
|
|
2018-07-23 17:49:54 +08:00
|
|
|
test_es:
|
|
|
|
<<: *container_config
|
2018-07-23 18:29:23 +08:00
|
|
|
<<: *react_16
|
2018-07-23 17:27:43 +08:00
|
|
|
steps:
|
2018-07-23 18:29:23 +08:00
|
|
|
- checkout
|
2018-07-23 18:20:55 +08:00
|
|
|
- *attach_workspace
|
2018-07-23 18:29:23 +08:00
|
|
|
- run:
|
2018-08-01 10:53:06 +08:00
|
|
|
command: npm test -- -w 1
|
2018-07-23 18:29:23 +08:00
|
|
|
environment:
|
|
|
|
LIB_DIR: es
|
2018-07-23 17:27:43 +08:00
|
|
|
|
2018-07-23 17:49:54 +08:00
|
|
|
test_dom:
|
|
|
|
<<: *container_config
|
2018-07-23 18:29:23 +08:00
|
|
|
<<: *react_16
|
2018-07-23 17:27:43 +08:00
|
|
|
steps:
|
2018-07-23 18:29:23 +08:00
|
|
|
- checkout
|
2018-07-23 18:20:55 +08:00
|
|
|
- *attach_workspace
|
2018-08-01 10:53:06 +08:00
|
|
|
- run: npm test -- -w 1 --coverage
|
2018-07-23 17:27:43 +08:00
|
|
|
- run: bash <(curl -s https://codecov.io/bash)
|
|
|
|
|
2018-07-23 17:49:54 +08:00
|
|
|
test_node:
|
|
|
|
<<: *container_config
|
2018-07-23 18:29:23 +08:00
|
|
|
<<: *react_16
|
2018-07-23 17:27:43 +08:00
|
|
|
steps:
|
2018-07-23 18:29:23 +08:00
|
|
|
- checkout
|
2018-07-23 18:20:55 +08:00
|
|
|
- *attach_workspace
|
2018-08-01 10:53:06 +08:00
|
|
|
- run: npm run test-node -- -w 1
|
2018-07-23 17:27:43 +08:00
|
|
|
|
2019-08-18 18:58:13 +08:00
|
|
|
check_metadata:
|
|
|
|
<<: *container_config
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- *attach_workspace
|
|
|
|
- run: node ./scripts/check-demo.js
|
|
|
|
|
2018-07-23 17:27:43 +08:00
|
|
|
workflows:
|
|
|
|
version: 2
|
2018-07-30 16:31:31 +08:00
|
|
|
build_test:
|
|
|
|
<<: *workflow
|
|
|
|
nightly:
|
|
|
|
<<: *workflow
|
|
|
|
triggers:
|
|
|
|
- schedule:
|
2020-05-20 19:47:49 +08:00
|
|
|
cron: '0 0 * * *'
|
2018-07-30 16:31:31 +08:00
|
|
|
filters:
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|