kotlin-bld-example/.cirleci/config.yml
Erik C. Thauvin d6228f1766
Updated dependencies
Bumped bld to version 2.0.1
Bumped Kotlin extension to version 1.0.0
Bumped Dokka extension to version 1.0.0
Bumped Detekt extension to version 0.9.5
Bumped JUnit to version 5.10.3
2024-07-29 16:54:22 -07:00

61 lines
No EOL
1.3 KiB
YAML

version: 2.1
orbs:
sdkman: joshdholtz/sdkman@0.2.0
commands:
build_and_test:
parameters:
kotlin:
type: string
reports-dir:
type: string
default: "build/reports/test_results"
steps:
- checkout
- sdkman/setup-sdkman
- sdkman/sdkman-install:
candidate: kotlin
version: << parameters.kotlin >>
- run:
name: Download dependencies
command: ./bld download
- run:
name: Compile source
command: ./bld compile
- run:
name: Check source with Detekt
command: ./bld detekt
- run:
name: Run tests
command: ./bld test -reports-dir=<< parameters.reports-dir >>
- run:
name: Generate documentation with Dokka
command: |
./bld javadoc
./bld dokka-html
./bld dokka-gfm
./bld dokka-jekyll
- store_test_results:
path: << parameters.reports-dir >>
jobs:
bld_jdk17:
docker:
- image: cimg/openjdk:17
steps:
- build_and_test:
kotlin: 1.9.24
bld_jdk21:
docker:
- image: cimg/openjdk:21
steps:
- build_and_test:
kotlin: 2.0.0
workflows:
bld:
jobs:
- bld_jdk17
- bld_jdk21