forked from trellis-ldp-archive/trellis-cassandra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
54 lines (41 loc) · 1.33 KB
/
.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
language: java
# required to use Travis' Cassandra service
# https://docs.travis-ci.com/user/database-setup/#cassandra
sudo: required
addons:
sonarcloud:
organization: trellis-ldp
cache:
directories:
- $HOME/.m2/repository
matrix:
fast_finish: true
include:
- jdk: openjdk8
- jdk: openjdk11
allow_failures:
- jdk: openjdk11
# install Casssandra "manually" to ensure the presence of nodetool
before_install:
- echo "deb http://www.apache.org/dist/cassandra/debian 311x main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list
- curl https://www.apache.org/dist/cassandra/KEYS | sudo apt-key add -
- sudo apt-get update
- sudo apt-get install cassandra
- sudo service cassandra start
addons:
apt:
update: true
install: mvn --quiet -Dcargo.maven.skip -Dcassandra.skip -DskipTests install
# load our schema
before_script: src/test/resources/load.sh
# build
# turn off Cassandra Maven plugin to use Travis' service instead
script: mvn -Dcassandra.skip -Dcassandra.nativeTransportPort=9042 install
# in case of failure, spew reports
after_failure:
- cat impl/target/*-reports/*.txt
- cat webapp/target/*-reports/*.txt
- cat integration-tests/target/*-reports/*.txt
- cat impl/target/logs/system.log
- cat webapp/target/logs/system.log
- cat integration-tests/target/logs/system.log