babashka/.circleci/config.yml

41 lines
1 KiB
YAML
Raw Permalink Normal View History

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
# 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:
setup:
docker:
- image: cimg/clojure:1.11.1
steps:
- checkout
- run:
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:
name: Generate config
2021-03-15 15:56:32 +00:00
command: |
/tmp/bbb .circleci/script/gen_ci.clj > generated_config.yml
- continuation/continue:
configuration_path: generated_config.yml
2019-08-09 12:51:42 +00:00
# our single workflow, that triggers the setup job defined above
2019-08-09 12:51:42 +00:00
workflows:
setup:
2019-08-09 12:51:42 +00:00
jobs:
- setup