This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/.circleci/config.yml
2021-06-30 20:43:10 +03:00

68 lines
1.7 KiB
YAML

---
# Circle CI YAML file
version: 2.0
jobs:
"Validate PR":
docker:
- image: jare/spacemacs-circleci:latest
environment:
BASH_ENV: ".circleci/shared"
working_directory: ~/.emacs.d
steps:
- checkout
- run:
name: Make sure that this PR targets develop branch
command: ./.circleci/PR_base
- run:
name: Make sure that this PR doesn't need rebase
command: ./.circleci/PR_rebased
"Validate Documentation":
docker:
- image: jare/spacemacs-circleci:latest
environment:
BASH_ENV: ".circleci/shared"
working_directory: ~/.emacs.d
steps:
- checkout
- run:
name: Select changed files
command: ./.circleci/select_pr_changed
- run:
name: export changed documentation files for validation
command: ./.circleci/org/export
- run:
name: validating changed documentation files
command: ./.circleci/org/validate
"Update built-in files":
docker:
- image: jare/spacemacs-circleci:latest
environment:
- BASH_ENV: ".circleci/shared"
- PUBLISH: "spacemacs_built_in"
working_directory: ~/.emacs.d
steps:
- checkout
- run:
name: Make patch file
command: ./.circleci/update/upd_built_in
- run:
name: Open PR if built in files must be updated
command: ./.circleci/update/maybe_pr
workflows:
version: 2
validate_pr_files:
jobs:
- "Validate PR"
- "Validate Documentation"
update_built_in:
triggers:
- schedule:
cron: "0 0,6,12,18 * * *"
filters:
branches:
only:
- develop
jobs:
- "Update built-in files"