-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
42 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,32 @@ | ||
version: 2 | ||
version: 2.1 | ||
|
||
orbs: | ||
sdkman: joshdholtz/[email protected] | ||
|
||
defaults: &defaults | ||
working_directory: ~/repo | ||
environment: | ||
JVM_OPTS: -Xmx3200m | ||
TERM: dumb | ||
CI_NAME: "CircleCI" | ||
|
||
defaults_bld: &defaults_bld | ||
steps: | ||
- checkout | ||
- run: | ||
name: Install Kotlin via SDKMAN! | ||
command: | | ||
curl -s "https://get.sdkman.io" | bash | ||
echo sdkman_auto_answer=true > $HOME/.sdkman/etc/config | ||
echo sdkman_auto_selfupdate=true >> $HOME/.sdkman/etc/config | ||
source "$HOME/.sdkman/bin/sdkman-init.sh" | ||
sdk install kotlin 2.0.0 | ||
- run: | ||
name: Download the bld dependencies | ||
command: ./bld download | ||
- run: | ||
name: Compile source with bld | ||
command: ./bld compile | ||
- run: | ||
name: Run tests with bld | ||
command: ./bld test | ||
commands: | ||
build_and_test: | ||
steps: | ||
- checkout | ||
- sdkman/setup-sdkman | ||
- sdkman/sdkman-install: | ||
candidate: kotlin | ||
version: 2.0.0 | ||
- run: | ||
name: Download dependencies | ||
command: ./bld download | ||
- run: | ||
name: Compile source | ||
command: ./bld compile | ||
- run: | ||
name: Run tests | ||
command: ./bld test | ||
|
||
jobs: | ||
bld_jdk17: | ||
|
@@ -34,18 +35,19 @@ jobs: | |
docker: | ||
- image: cimg/openjdk:17.0 | ||
|
||
<<: *defaults_bld | ||
steps: | ||
- build_and_test | ||
|
||
bld_jdk20: | ||
<<: *defaults | ||
|
||
docker: | ||
- image: cimg/openjdk:20.0 | ||
|
||
<<: *defaults_bld | ||
steps: | ||
- build_and_test | ||
|
||
workflows: | ||
version: 2 | ||
bld: | ||
jobs: | ||
- bld_jdk17 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters