-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (35 loc) · 993 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
dist: trusty
install: true
language: java
jdk: openjdk8
services:
- postgresql
addons:
postgresql: "10"
apt:
packages:
- postgresql-10
- postgresql-client-10
env:
global:
- PGPORT=5433
before_install:
# POSTGRESQL DB
- sudo sed -i -e '/local.*peer/s/postgres/all/' -e 's/peer\|md5/trust/g' /etc/postgresql/*/main/pg_hba.conf
- sudo sed -i 's/max_connections = 100/max_connections = 500/g' /etc/postgresql/10/main/postgresql.conf
- sudo service postgresql restart
# WAIT PostgreSQL to start
- sleep 3
before_script:
- psql -c 'CREATE DATABASE cts_tests_schema;' -U postgres
jobs:
include:
- stage: test
script:
- mvn test -e -T8 -DskipTests=false -Ddb.config.location=environment -Dtests.db.type=POSTGRESQL -Dtests.db.url=jdbc:postgresql://localhost:5433/cts_tests_schema -Dtests.db.username=postgres -Ppostgresql,jacoco-coverage
- mvn spotbugs:check -T8
after_success:
- bash <(curl -s https://codecov.io/bash)
cache:
directories:
- $HOME/.m2