forked from wikimedia/restbase
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
30 lines (26 loc) · 961 Bytes
/
.travis.yml
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
language: node_js
node_js:
- "4"
- "6"
sudo: false
notifications:
irc:
channels:
- "irc.freenode.org#wikimedia-services"
on_success: change
on_failure: always
addons:
apt:
packages:
- oracle-java8-set-default
env:
- CASSANDRA_VERSION=3.11.0 TEST_TARGET=all
before_install:
- wget https://archive.apache.org/dist/cassandra/${CASSANDRA_VERSION}/apache-cassandra-${CASSANDRA_VERSION}-bin.tar.gz -P ../
- tar -xzf ../apache-cassandra-${CASSANDRA_VERSION}-bin.tar.gz -C ../
- export JAVA_HOME="/usr/lib/jvm/java-8-oracle"
- mkdir -p ../apache-cassandra-${CASSANDRA_VERSION}/logs
- echo "-Xms512m" >> ../apache-cassandra-${CASSANDRA_VERSION}/conf/jvm.options
- echo "-Xmx1g" >> ../apache-cassandra-${CASSANDRA_VERSION}/conf/jvm.options
- bash ../apache-cassandra-${CASSANDRA_VERSION}/bin/cassandra > /dev/null
script: sh test/utils/run_tests.sh coverage ${TEST_TARGET} && (npm run-script coveralls || exit 0)