diff --git a/.circleci/config.yml b/.circleci/config.yml index 09d88965..e0b480cb 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -9,6 +9,16 @@ defaults: &defaults 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" + echo 'export SDKMAN_DIR="$HOME/.sdkman"' >> $BASH_ENV + echo 'source "$HOME/.sdkman/bin/sdkman-init.sh"' >> $BASH_ENV + sdk install kotlin 2.0.0 - run: name: Download the bld dependencies command: ./bld download diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2398bba5..a1c96126 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,9 +6,19 @@ variables: stages: - test +before_script: + - apt-get update -qq && apt-get install -y -qq unzip + - 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" + - echo 'export SDKMAN_DIR="$HOME/.sdkman"' >> $BASH_ENV + - echo 'source "$HOME/.sdkman/bin/sdkman-init.sh"' >> $BASH_ENV + - sdk install kotlin 2.0.0 + test: stage: test script: - - ./bld download - - ./bld compile - - ./bld test + - ./bld download + - ./bld compile + - ./bld test diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index 7c851945..5662d513 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -2,6 +2,17 @@ image: openjdk:17 pipelines: default: + - step: + name: Install Kotlin via SDKMAN! + script: + - apt-get update -qq && apt-get install -y -qq unzip + - 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" + - echo 'export SDKMAN_DIR="$HOME/.sdkman"' >> $BASH_ENV + - echo 'source "$HOME/.sdkman/bin/sdkman-init.sh"' >> $BASH_ENV + - sdk install kotlin 2.0.0 - step: name: Test with bld script: