forked from apache/cassandra-java-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.yaml
95 lines (95 loc) · 2.84 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
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
- openjdk7
- openjdk8
- openjdk11
os:
- 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"