forked from ant-design/ant-design-icons
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: improve circle ci (ant-design#218)
* ci: improve circle ci * feat: update * fix: remove --hoist option for lerna * feat: update * feat: update
- Loading branch information
Showing
3 changed files
with
74 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,83 @@ | ||
# Javascript Node CircleCI 2.0 configuration file | ||
# | ||
# Check https://circleci.com/docs/2.0/language-javascript/ for more details | ||
# | ||
version: 2 | ||
jobs: | ||
build: | ||
|
||
references: | ||
container_config: &container_config | ||
docker: | ||
# specify the version you desire here | ||
- image: circleci/node:8 | ||
- image: circleci/node:lts | ||
working_directory: ~/ant-design-icons | ||
|
||
# Specify service dependencies here if necessary | ||
# CircleCI maintains a library of pre-built images | ||
# documented at https://circleci.com/docs/2.0/circleci-images/ | ||
# - image: circleci/mongo:3.4.4 | ||
attach_workspace: &attach_workspace | ||
attach_workspace: | ||
at: ~/ant-design-icons | ||
|
||
working_directory: ~/repo | ||
workflow: &workflow | ||
jobs: | ||
- setup: | ||
filters: | ||
branches: | ||
ignore: gh-pages | ||
- icons-svg: | ||
requires: | ||
- setup | ||
- icons-react: | ||
requires: | ||
- setup | ||
- icons-svg | ||
|
||
jobs: | ||
setup: | ||
<<: *container_config | ||
steps: | ||
- checkout | ||
|
||
# Download and cache dependencies | ||
- restore_cache: | ||
keys: | ||
- v1-dependencies-{{ checksum "package.json" }} | ||
# fallback to using the latest cache if no exact match is found | ||
- v1-dependencies- | ||
|
||
- run: yarn install | ||
|
||
- save_cache: | ||
- run: node -v | ||
- run: yarn -v | ||
- run: yarn | ||
- run: yarn bootstrap | ||
- run: | ||
command: | | ||
set +eo | ||
yarn list | ||
true | ||
- persist_to_workspace: | ||
root: ~/ant-design-icons | ||
paths: | ||
- node_modules | ||
key: v1-dependencies-{{ checksum "package.json" }} | ||
- packages/icons-*/node_modules | ||
- store_artifacts: | ||
path: yarn.lock | ||
|
||
- run: yarn run bootstrap | ||
- run: yarn cache clean | ||
icons-svg: | ||
<<: *container_config | ||
steps: | ||
- checkout | ||
- *attach_workspace | ||
- run: yarn icons:generate | ||
- run: yarn icons:build | ||
- run: yarn icons:test | ||
- persist_to_workspace: | ||
root: ~/ant-design-icons | ||
paths: | ||
- packages/icons-svg/es | ||
- packages/icons-svg/lib | ||
- packages/icons-svg/inline-svg | ||
|
||
icons-react: | ||
<<: *container_config | ||
steps: | ||
- checkout | ||
- *attach_workspace | ||
- run: yarn react:ci | ||
|
||
- run: yarn run lint | ||
- run: yarn run icons:test | ||
- run: yarn run icons:generate | ||
- run: yarn run icons:build | ||
- run: yarn run react:test | ||
workflows: | ||
version: 2 | ||
build_test: | ||
<<: *workflow | ||
nightly: | ||
<<: *workflow | ||
triggers: | ||
- schedule: | ||
cron: "0 0 * * *" | ||
filters: | ||
branches: | ||
only: | ||
- master |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters