forked from apache/cassandra-java-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.yaml
84 lines (84 loc) · 2.49 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
schedules:
commit:
# Run short suite on commit with enough C* versions to get full protocol version coverage.
schedule: per_commit
matrix:
exclude:
# Exclude all java 7 builds
- java: oraclejdk7
# Exclude java6 with all versions except latest
- java: openjdk6
cassandra: ['1.2', '2.0', '2.1', '2.2', '3.0']
env_vars: |
TEST_GROUP="short"
disable_commit_status: true
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
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
java:
- openjdk6
- oraclejdk7
- oraclejdk8
os:
- ubuntu/trusty64/m3.large
cassandra:
- '1.2'
- '2.0'
- '2.1'
- '2.2'
- '3.0'
- '3.11'
build:
- script: |
. /usr/local/bin/jdk_switcher.sh
jdk_switcher use oraclejdk8
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"