spacemacs/.circleci/config.yml

69 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"
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"
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"
steps:
- run:
name: Initialize bot account
command: .circleci/update/bot_init
- 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"