schedules: commit: # Run short suite on commit with enough C* versions to get full protocol version coverage. schedule: per_commit matrix: exclude: # Exclude all builds on old jdk versions (which are done on trusty) - os: ubuntu/trusty64/java-driver - os: ubuntu/bionic64/java-driver java: ['openjdk6','openjdk7'] # Exclude java8 with all versions exception 2.1 and latest - java: openjdk8 cassandra: ['2.2', '3.0'] - java: oraclejdk10 cassandra: ['2.1', '2.2', '3.0'] env_vars: | TEST_GROUP="short" disable_commit_status: true disable_pull_requests: true notify: slack: java-driver-dev-bots nightly: # Run full suite nightly on change for all primary branches if they have changes. schedule: nightly matrix: exclude: # Run jdk8 and 10 on bionic, 6 and 7 on trusty - os: ubuntu/trusty64/java-driver java: ['openjdk8','oraclejdk10'] - os: ubuntu/bionic64/java-driver java: ['openjdk6','openjdk7'] branches: # regex matches primary branch format (2.1, 3.x, 3.0.x, 3.1.x, etc). include: ["/\\d+(\\.[\\dx]+)+/"] env_vars: | TEST_GROUP="long" disable_commit_status: true disable_pull_requests: true notify: slack: java-driver-dev-bots adhoc: # Adhoc job for non-primary braches that doesn't have a schedule but may be used to run all configs. schedule: adhoc matrix: exclude: # Run jdk8 and 10 on bionic, 6 and 7 on trusty - os: ubuntu/trusty64/java-driver java: ['openjdk8','oraclejdk10'] - os: ubuntu/bionic64/java-driver java: ['openjdk6','openjdk7'] branches: # regex matches primary branch format (2.1, 3.x, 3.0.x, 3.1.x, etc). exclude: ["/\\d+(\\.[\\dx]+)+/"] env_vars: | TEST_GROUP="long" disable_commit_status: true disable_pull_requests: true notify: slack: java-driver-dev-bots java: - openjdk6 - openjdk7 - openjdk8 - oraclejdk10 os: - ubuntu/trusty64/java-driver - ubuntu/bionic64/java-driver cassandra: - '2.1' - '2.2' - '3.0' - '3.11' build: - script: | . /usr/local/bin/jdk_switcher.sh jdk_switcher use openjdk8 export MAVEN_HOME=/home/jenkins/.mvn/apache-maven-3.2.5 export PATH=$MAVEN_HOME/bin:$PATH mvn -B -V install -DskipTests - script: | . /usr/local/bin/jdk_switcher.sh jdk_switcher use $JAVA_VERSION - type: maven version: 3.2.5 goals: verify --fail-never -P$TEST_GROUP properties: | com.datastax.driver.TEST_BASE_NODE_WAIT=120 com.datastax.driver.NEW_NODE_DELAY_SECONDS=100 cassandra.version=$CCM_CASSANDRA_VERSION ccm.java.home=$CCM_JAVA_HOME ccm.path=$CCM_JAVA_HOME/bin ccm.maxNumberOfNodes=3 failIfNoTests=false maven.test.failure.ignore=true maven.javadoc.skip=true - type: maven version: 3.2.5 goals: verify --fail-never -Pisolated properties: | com.datastax.driver.TEST_BASE_NODE_WAIT=120 com.datastax.driver.NEW_NODE_DELAY_SECONDS=100 cassandra.version=$CCM_CASSANDRA_VERSION ccm.java.home=$CCM_JAVA_HOME ccm.path=$CCM_JAVA_HOME/bin ccm.maxNumberOfNodes=3 failIfNoTests=false maven.test.failure.ignore=true maven.javadoc.skip=true - xunit: - "**/target/surefire-reports/TEST-*.xml" - "**/target/failsafe-reports/TEST-*.xml"