2017-08-13 00:57:13 +00:00
|
|
|
---
|
|
|
|
# Circle CI YAML file
|
2017-08-07 04:07:33 +00:00
|
|
|
version: 2.0
|
2017-08-31 18:42:19 +00:00
|
|
|
|
2017-08-07 04:07:33 +00:00
|
|
|
jobs:
|
2017-09-24 17:45:00 +00:00
|
|
|
"Validate PR":
|
|
|
|
docker:
|
|
|
|
- image: jare/spacemacs-circleci:latest
|
2020-06-21 22:48:40 +00:00
|
|
|
environment:
|
|
|
|
BASH_ENV: ".circleci/shared"
|
2017-09-24 17:45:00 +00:00
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run:
|
2018-08-22 12:25:45 +00:00
|
|
|
name: Make sure that this PR targets develop branch
|
2021-07-01 00:32:29 +00:00
|
|
|
command: .circleci/PR_base
|
2018-08-22 12:25:45 +00:00
|
|
|
- run:
|
|
|
|
name: Make sure that this PR doesn't need rebase
|
2021-07-01 00:32:29 +00:00
|
|
|
command: .circleci/PR_rebased
|
2020-09-06 12:11:59 +00:00
|
|
|
"Validate Documentation":
|
2017-08-31 18:42:19 +00:00
|
|
|
docker:
|
2018-05-20 11:54:20 +00:00
|
|
|
- image: jare/spacemacs-circleci:latest
|
2020-06-21 22:48:40 +00:00
|
|
|
environment:
|
|
|
|
BASH_ENV: ".circleci/shared"
|
2017-08-07 04:07:33 +00:00
|
|
|
steps:
|
|
|
|
- checkout
|
2017-08-31 18:42:19 +00:00
|
|
|
- run:
|
2019-04-03 04:23:55 +00:00
|
|
|
name: Select changed files
|
2021-07-01 00:32:29 +00:00
|
|
|
command: .circleci/select_pr_changed
|
2018-10-12 17:29:18 +00:00
|
|
|
- run:
|
|
|
|
name: export changed documentation files for validation
|
2021-07-01 00:32:29 +00:00
|
|
|
command: .circleci/org/export
|
2018-10-12 17:29:18 +00:00
|
|
|
- run:
|
|
|
|
name: validating changed documentation files
|
2021-07-01 00:32:29 +00:00
|
|
|
command: .circleci/org/validate
|
2021-06-30 16:19:45 +00:00
|
|
|
"Update built-in files":
|
|
|
|
docker:
|
|
|
|
- image: jare/spacemacs-circleci:latest
|
|
|
|
environment:
|
|
|
|
- BASH_ENV: ".circleci/shared"
|
|
|
|
- PUBLISH: "spacemacs_built_in"
|
|
|
|
steps:
|
2021-07-01 10:22:42 +00:00
|
|
|
- run:
|
|
|
|
name: Initialize bot account
|
|
|
|
command: .circleci/update/bot_init
|
2021-06-30 16:19:45 +00:00
|
|
|
- checkout
|
|
|
|
- run:
|
|
|
|
name: Make patch file
|
2021-07-01 00:32:29 +00:00
|
|
|
command: .circleci/update/upd_built_in
|
2021-06-30 16:19:45 +00:00
|
|
|
- run:
|
|
|
|
name: Open PR if built in files must be updated
|
2021-07-01 00:32:29 +00:00
|
|
|
command: .circleci/update/maybe_pr
|
2017-08-31 18:42:19 +00:00
|
|
|
|
|
|
|
workflows:
|
|
|
|
version: 2
|
2021-06-30 16:19:45 +00:00
|
|
|
validate_pr_files:
|
2017-08-31 18:42:19 +00:00
|
|
|
jobs:
|
2017-09-24 17:45:00 +00:00
|
|
|
- "Validate PR"
|
2020-09-06 12:11:59 +00:00
|
|
|
- "Validate Documentation"
|
2021-06-30 16:19:45 +00:00
|
|
|
update_built_in:
|
|
|
|
triggers:
|
|
|
|
- schedule:
|
|
|
|
cron: "0 0,6,12,18 * * *"
|
|
|
|
filters:
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- develop
|
|
|
|
jobs:
|
|
|
|
- "Update built-in files"
|