forked from apache/cassandra-java-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.yaml
65 lines (65 loc) · 2.6 KB
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
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
- java: ['openjdk6','openjdk7']
# Exclude java8 with all versions except latest
- java: openjdk8
cassandra: ['2.2', '3.0']
# Exclude java11 with all versions except latest
- java: openjdk11
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
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
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
- openjdk11
os:
- ubuntu/bionic64/java-driver
cassandra:
- '3.11'
build:
- script: |
. /usr/local/bin/jdk_switcher.sh
jdk_switcher use openjdk8
export JAVA8_HOME=$JAVA_HOME
export MAVEN_HOME=/home/jenkins/.mvn/apache-maven-3.2.5
export PATH=$MAVEN_HOME/bin:$PATH
mvn -B -V install -DskipTests
jdk_switcher use $JAVA_VERSION
mvn -B -V verify --fail-never -P$TEST_GROUP -Dcom.datastax.driver.TEST_BASE_NODE_WAIT=120 -Dcom.datastax.driver.NEW_NODE_DELAY_SECONDS=100 -Dcassandra.version=$CCM_CASSANDRA_VERSION -Dccm.java.home=$CCM_JAVA_HOME -Dccm.path=$CCM_JAVA_HOME/bin -Dccm.maxNumberOfNodes=3 -DfailIfNoTests=false -Dmaven.test.failure.ignore=true -Dmaven.javadoc.skip=true
mvn -B -V verify --fail-never -Pisolated -Dcom.datastax.driver.TEST_BASE_NODE_WAIT=120 -Dcom.datastax.driver.NEW_NODE_DELAY_SECONDS=100 -Dcassandra.version=$CCM_CASSANDRA_VERSION -Dccm.java.home=$CCM_JAVA_HOME -Dccm.path=$CCM_JAVA_HOME/bin -Dccm.maxNumberOfNodes=3 -DfailIfNoTests=false -Dmaven.test.failure.ignore=true -Dmaven.javadoc.skip=true
- xunit:
- "**/target/surefire-reports/TEST-*.xml"
- "**/target/failsafe-reports/TEST-*.xml"