mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-11 13:59:11 +08:00
4cdf37bedb
* init form * first demo * add normal login * add style * webit * support nest errors * beauti form errors * use onReset * modal demo * add list demo * match key of errors logic * date demo * customize component * moving style * add status style * without form create * add demos * add inline style * clean up legacy * fix drawer demo * mention * fix edit-row * editable table cell * update mentions demo * fix some test case * fix upload test * fix lint * part of doc * fix ts * doc update * rm react 15 * rm config * enhance test coverage * clean up * fix FormItem context pass logic * add more demo * en to build * update demo * update demo & snapshot * more doc * update list doc * update doc * update demo to display condition render * update snapshot * add provider doc * support configProvider * more doc about validateMessages * more description * more and more doc * fix typo * en doc * Form.List doc * m v3 -> v4 * add skip
163 lines
3.0 KiB
YAML
163 lines
3.0 KiB
YAML
version: 2
|
|
|
|
references:
|
|
container_config: &container_config
|
|
docker:
|
|
- image: circleci/node:8
|
|
working_directory: ~/ant-design
|
|
|
|
attach_workspace: &attach_workspace
|
|
attach_workspace:
|
|
at: ~/ant-design
|
|
|
|
react_16: &react_16
|
|
environment:
|
|
REACT: 16
|
|
|
|
workflow: &workflow
|
|
jobs:
|
|
- setup:
|
|
filters:
|
|
branches:
|
|
ignore: gh-pages
|
|
- dist:
|
|
requires:
|
|
- setup
|
|
- compile:
|
|
requires:
|
|
- setup
|
|
- lint:
|
|
requires:
|
|
- setup
|
|
- test_dist:
|
|
requires:
|
|
- dist
|
|
- test_lib:
|
|
requires:
|
|
- compile
|
|
- test_es:
|
|
requires:
|
|
- compile
|
|
- test_dom:
|
|
requires:
|
|
- setup
|
|
- test_node:
|
|
requires:
|
|
- setup
|
|
|
|
jobs:
|
|
setup:
|
|
<<: *container_config
|
|
steps:
|
|
- checkout
|
|
- run: node -v
|
|
- run: npm -v
|
|
- run: npm install
|
|
- run:
|
|
command: |
|
|
set +eo
|
|
npm ls
|
|
true
|
|
- persist_to_workspace:
|
|
root: ~/ant-design
|
|
paths:
|
|
- node_modules
|
|
- store_artifacts:
|
|
path: package-lock.json
|
|
|
|
dist:
|
|
<<: *container_config
|
|
steps:
|
|
- checkout
|
|
- *attach_workspace
|
|
- run: npm run dist
|
|
- run: node ./tests/dekko/dist.test.js
|
|
- 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
|
|
|
|
lint:
|
|
<<: *container_config
|
|
steps:
|
|
- checkout
|
|
- *attach_workspace
|
|
- run: npm run lint
|
|
|
|
test_dist:
|
|
<<: *container_config
|
|
<<: *react_16
|
|
steps:
|
|
- checkout
|
|
- *attach_workspace
|
|
- run:
|
|
command: npm test -- -w 1
|
|
environment:
|
|
LIB_DIR: dist
|
|
|
|
test_lib:
|
|
<<: *container_config
|
|
<<: *react_16
|
|
steps:
|
|
- checkout
|
|
- *attach_workspace
|
|
- run:
|
|
command: npm test -- -w 1
|
|
environment:
|
|
LIB_DIR: lib
|
|
|
|
test_es:
|
|
<<: *container_config
|
|
<<: *react_16
|
|
steps:
|
|
- checkout
|
|
- *attach_workspace
|
|
- run:
|
|
command: npm test -- -w 1
|
|
environment:
|
|
LIB_DIR: es
|
|
|
|
test_dom:
|
|
<<: *container_config
|
|
<<: *react_16
|
|
steps:
|
|
- checkout
|
|
- *attach_workspace
|
|
- run: npm test -- -w 1 --coverage
|
|
- run: bash <(curl -s https://codecov.io/bash)
|
|
|
|
test_node:
|
|
<<: *container_config
|
|
<<: *react_16
|
|
steps:
|
|
- checkout
|
|
- *attach_workspace
|
|
- run: npm run test-node -- -w 1
|
|
|
|
workflows:
|
|
version: 2
|
|
build_test:
|
|
<<: *workflow
|
|
nightly:
|
|
<<: *workflow
|
|
triggers:
|
|
- schedule:
|
|
cron: "0 0 * * *"
|
|
filters:
|
|
branches:
|
|
only:
|
|
- master
|