-
Notifications
You must be signed in to change notification settings - Fork 89
/
build.yaml.bak
51 lines (47 loc) · 1.07 KB
/
build.yaml.bak
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
schedules:
commit:
schedule: per_commit
matrix:
exclude:
- ruby: ['2.2']
- cassandra: ['2.2', '3.0']
nightly:
schedule: nightly
branches:
include: [master]
ruby:
- 2.2
- 2.3
- 2.4
- 2.7
- jruby9.1
cassandra:
- '2.1'
- '3.0'
- '3.11'
- '4.0'
os:
- ubuntu/bionic64/ruby-driver
build:
- script: |
ruby_version=`ruby --version`
if [[ `ruby --version` == jruby* ]]; then
# Add '-java' to version as that is included in version name when using jruby
sed -i -r 's/cassandra-driver \((.*)\)/cassandra-driver (\1-java)/' Gemfile.lock
fi
- script: |
bundle update --bundler
- type: bundler
without: development docs
- script: |
# Set the Java paths (for CCM)
export JAVA_HOME=$CCM_JAVA_HOME
export PATH=$JAVA_HOME/bin:$PATH
# Define Cassandra or DSE runtime
if [ "$CCM_IS_DSE" == "true" ]; then
export DSE_VERSION=$CCM_VERSION
else
export CASSANDRA_VERSION=$CCM_VERSION
fi
# Run the tests
bundle exec rake test