2019-08-09 12:51:42 +00:00
|
|
|
# Clojure CircleCI 2.0 configuration file
|
|
|
|
|
#
|
|
|
|
|
# Check https://circleci.com/docs/2.0/language-clojure/ for more details
|
|
|
|
|
#
|
|
|
|
|
version: 2.1
|
2022-04-15 17:20:52 +00:00
|
|
|
|
2022-06-20 18:03:03 +00:00
|
|
|
# this allows you to use CircleCI's dynamic configuration feature
|
|
|
|
|
setup: true
|
|
|
|
|
|
|
|
|
|
# the continuation orb is required in order to use dynamic configuration
|
|
|
|
|
orbs:
|
|
|
|
|
continuation: circleci/continuation@0.1.2
|
|
|
|
|
|
|
|
|
|
# our defined job, and its steps
|
2019-08-09 12:51:42 +00:00
|
|
|
jobs:
|
2022-06-20 18:03:03 +00:00
|
|
|
setup:
|
2022-05-28 20:01:20 +00:00
|
|
|
docker:
|
2022-05-29 20:58:09 +00:00
|
|
|
- image: cimg/clojure:1.11.1
|
2022-05-28 20:01:20 +00:00
|
|
|
steps:
|
|
|
|
|
- checkout
|
2022-05-29 20:58:09 +00:00
|
|
|
- run:
|
2022-05-28 20:01:20 +00:00
|
|
|
name: Bootstrap Babashka
|
|
|
|
|
command: |
|
|
|
|
|
curl -sLO https://raw.githubusercontent.com/babashka/babashka/master/install
|
|
|
|
|
sudo bash install --dir /tmp
|
|
|
|
|
- run:
|
|
|
|
|
name: Rename bb binary
|
|
|
|
|
command: mv /tmp/bb /tmp/bbb
|
|
|
|
|
- run:
|
2022-06-20 18:03:03 +00:00
|
|
|
name: Generate config
|
2021-03-15 15:56:32 +00:00
|
|
|
command: |
|
2022-12-31 11:16:39 +00:00
|
|
|
/tmp/bbb .circleci/script/gen_ci.clj > generated_config.yml
|
2022-06-20 18:03:03 +00:00
|
|
|
- continuation/continue:
|
|
|
|
|
configuration_path: generated_config.yml
|
2019-08-09 12:51:42 +00:00
|
|
|
|
2022-06-20 18:03:03 +00:00
|
|
|
# our single workflow, that triggers the setup job defined above
|
2019-08-09 12:51:42 +00:00
|
|
|
workflows:
|
2022-06-20 18:03:03 +00:00
|
|
|
setup:
|
2019-08-09 12:51:42 +00:00
|
|
|
jobs:
|
2022-06-20 18:03:03 +00:00
|
|
|
- setup
|