Skip to content

Commit

Permalink
Adding support for Cassandra 4 and java 11.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Haddad committed Sep 7, 2022
1 parent 991b466 commit df6d9af
Showing 1 changed file with 57 additions and 10 deletions.
67 changes: 57 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
version: 2.1

aliases:
base_job: &base_job
base_job8: &base_job8
docker:
# specify the version you desire here
- image: circleci/openjdk:8-jdk
Expand All @@ -15,6 +15,16 @@ aliases:
environment:
TERM: dumb

base_job11: &base_job11
docker:
# specify the version you desire here
- image: circleci/openjdk:11-jdk

working_directory: ~/repo

environment:
TERM: dumb

commands:
install_ccm:
description: "Installs and starts CCM"
Expand Down Expand Up @@ -74,8 +84,8 @@ commands:

jobs:

build:
<<: *base_job
build_with_java8:
<<: *base_job8

steps:
- checkout
Expand All @@ -99,24 +109,56 @@ jobs:

- run: ./gradlew testClasses

build_with_java11:
<<: *base_job11

steps:
- checkout
- run: sudo apt-get update -qq
- run: sudo apt-get install -y libjna-java python-dev python3-pip libyaml-dev nodejs
- run: sudo pip3 install pyYaml ccm

- run:
name: Download CCM for Cache
command: |
sudo apt-get update -qq
sudo apt-get install -y libjna-java python-dev python3-pip libyaml-dev nodejs
sudo pip3 install pyYaml ccm
ccm create cassandra_40 --no-switch -v 4.0.6
- save_cache:
key: ccm
paths:
- ~/.ccm/repository

- run: ./gradlew testClasses

cassandra_30:
<<: *base_job
<<: *base_job8

steps:
- checkout
- install_ccm:
version: 3.0.17

cassandra_311:
<<: *base_job
<<: *base_job8

steps:
- checkout
- install_ccm:
version: 3.11.4

cassandra_40:
<<: *base_job8

steps:
- checkout
- install_ccm:
version: 4.0.6

build_packages:
<<: *base_job
<<: *base_job8

steps:
- checkout
Expand All @@ -125,16 +167,21 @@ jobs:
workflows:
version: 2.1

cassandra_30:
cassandra_30_java8:
jobs:
- build
- build_with_java8
- cassandra_30

cassandra_311:
cassandra_311_java8:
jobs:
- build
- build_with_java8
- cassandra_311

cassandra_40:
jobs:
- build_with_java11
- cassandra_40

build_everything:
jobs:
- build_packages

0 comments on commit df6d9af

Please sign in to comment.