Skip to content

Removes OSGI/Karaf support #1089

Removes OSGI/Karaf support

Removes OSGI/Karaf support #1089

Workflow file for this run

name: Test report
on:
workflow_dispatch:
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
push:
paths-ignore:
- '**.md'
env:
MAVEN_OPTS: -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3 -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120
jobs:
tests:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
include:
- name: "Unit tests"
test_suite: 'test jacoco:report'
python: 3.6
java: 8
- name: "Style check"
test_suite: 'compile com.mycila:license-maven-plugin:check pmd:pmd pmd:cpd pmd:check pmd:cpd-check javadoc:jar'
python: 3.6
java: 8
- name: "Standalone integration 3.0"
test_suite: 'verify -P docker-integration-test,standalone-integration-tests -Dit.cassandra.version=3.0 -DskipUTs'
python: 3.6
java: 8
- name: "Standalone integration 3.11"
test_suite: 'verify -P docker-integration-test,standalone-integration-tests -Dit.cassandra.version=3.11 -DskipUTs'
python: 3.6
java: 8
- name: "Standalone integration 4.0 (Java 8)"
test_suite: 'verify -P docker-integration-test,standalone-integration-tests -Dit.cassandra.version=4.0 -DskipUTs'
python: 3.6
java: 8
- name: "Standalone integration 4.0 (Java 11)"
test_suite: 'verify -P docker-integration-test,standalone-integration-tests -Dit.cassandra.version=4.0 -DskipUTs'
python: 3.6
java: 11
- name: "Python 2.7 integration (Cassandra 3.11, Java 8)"
test_suite: 'verify -P docker-integration-test,python-integration-tests -DskipUTs'
python: 2.7
java: 8
- name: "Python 3.6 integration (Cassandra 3.11, Java 8)"
test_suite: 'verify -P docker-integration-test,python-integration-tests -DskipUTs'
python: 3.6
java: 8
- name: "Python 3.6 integration (Cassandra 4.0, Java 11)"
test_suite: 'verify -P docker-integration-test,python-integration-tests -Dit.cassandra.version=4.0 -DskipUTs'
python: 3.6
java: 11
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Cache local Maven repository
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
with:
path: ~/.m2/repository
key: build-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
build-${{ runner.os }}-maven-
- name: Set up JDK
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up Python 3.X
if: startsWith(matrix.python, '3.')
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: ${{ matrix.python }}
- name: Set up Python 2.7
if: matrix.python == 2.7
run: |
sudo apt-get update
sudo apt-get install python-setuptools python-dev
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
sudo python get-pip.py
- name: install dependencies
run: mvn install -DskipTests=true
- run: mvn $TEST_SUITE -B
env:
TEST_SUITE: ${{ matrix.test_suite }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@54bcd8715eee62d40e33596ef5e8f0f48dbbccab # v4.1.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
files: >
./rest/target/site/jacoco/jacoco.xml,
./application/target/site/jacoco/jacoco.xml,
./core/target/site/jacoco/jacoco.xml,
./fm.impl/target/site/jacoco/jacoco.xml,
./connection/target/site/jacoco/jacoco.xml