Skip to content

Commit

Permalink
Install jdk 11 in CI
Browse files Browse the repository at this point in the history
Signed-off-by: wslulciuc <willy@datakin.com>
  • Loading branch information
wslulciuc committed Oct 16, 2020
1 parent 5e0e0e2 commit cb715f5
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .circleci/config.yml
Expand Up @@ -15,6 +15,7 @@ jobs:
keys:
- v1-jvm-{{ .Branch }}-{{ .Revision }}
- v1-jvm-{{ .Branch }}
- run: ./.circleci/get-jdk11.sh
- run: echo "checks.disable=true" > ~/.testcontainers.properties
- run: ./gradlew --no-daemon --stacktrace build
- run: ./gradlew --no-daemon jacocoTestReport
Expand All @@ -33,6 +34,7 @@ jobs:
<<: *defaults
steps:
- checkout
- run: ./.circleci/get-jdk11.sh
- run: ./docker/login.sh
- run: ./docker/build-and-push.sh $CIRCLE_TAG

Expand Down
21 changes: 21 additions & 0 deletions .circleci/get-jdk11.sh
@@ -0,0 +1,21 @@
#!/bin/bash
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Usage: $ ./get-jdk11.sh

set -e

sudo apt-get update && apt-get install -y default-jdk

echo "DONE!"

0 comments on commit cb715f5

Please sign in to comment.