This repository has been archived by the owner on Aug 9, 2019. It is now read-only.
forked from datastax/nodejs-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.yaml
64 lines (64 loc) · 1.64 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
schedules:
commit:
# per commit job for all branches to run a subset of configs.
schedule: per_commit
matrix:
exclude:
# Exclude all builds for 6.x.
- nodejs: ['6']
# Only build with latest for 4.x and 10.x
- nodejs: ['4','10']
cassandra: ['2.1', '2.2', '3.0']
# Only build with 2.1 and latest for 8.x
- nodejs: '8'
cassandra: ['2.2', '3.0']
nightly:
# nightly job for primary branches to run all configs.
schedule: nightly
branches:
# regex matches primary branch format (2.1, 3.x, 3.0.x, 3.1.x, master, etc).
include: ["/((\\d+(\\.[\\dx]+)+)|master)/"]
adhoc:
# adhoc job for non-primary braches that doesn't have a schedule but may be used to run all configs.
schedule: adhoc
branches:
exclude: ["/((\\d+(\\.[\\dx]+)+)|master)/"]
nodejs:
- '4'
- '6'
- '8'
- '10'
os:
- ubuntu/bionic64/nodejs-driver
cassandra:
- '2.1'
- '2.2'
- '3.0'
- '3.11'
build:
- type: envinject
properties: |
TEST_CASSANDRA_VERSION=$CCM_CASSANDRA_VERSION
JAVA_HOME=$CCM_JAVA_HOME
CCM_PATH=$HOME/ccm
JUNIT_REPORT_STACK=1
JUNIT_REPORT_PATH=.
multi=mocha-jenkins-reporter=-
SIMULACRON_PATH=$HOME/simulacron.jar
TEST_TRACE=on
- npm: install
- npm: install mocha-jenkins-reporter@0
- npm: install -g eslint@4
- npm: run eslint
- npm: run ci_jenkins
graceful: true
- script: |
cd examples
npm install
ccm create test_samples -n 1 -b -s -v $TEST_CASSANDRA_VERSION
node runner.js
run_rc=$?
ccm remove
exit $run_rc
strict: false
- xunit: "*.xml"