-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
37 lines (37 loc) · 871 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
sudo: true
language: java
jdk:
- openjdk8
cache:
directories:
- $HOME/.m2
script:
- set -e
- pdd --file=/dev/null
- mvn clean site -Psite --errors --batch-mode
- mvn clean install -Pqulice --errors --batch-mode
install:
- gem install pdd
- gem install xcop
env:
global:
- MAVEN_OPTS="-Xmx256m"
- JAVA_OPTS="-Xmx256m"
services:
- mysql
- postgresql
addons:
postgresql: "10"
apt:
packages:
- postgresql-10
- postgresql-client-10
before_install:
# Use default port
- sudo sed -i 's/port = 5433/port = 5432/' /etc/postgresql/10/main/postgresql.conf
# Use 9.6 auth config
- sudo cp /etc/postgresql/{9.6,10}/main/pg_hba.conf
- sudo service postgresql restart
before_script:
- psql -U postgres -c "CREATE EXTENSION pgcrypto;" template1
- psql -U postgres -c "ALTER USER postgres WITH PASSWORD 'postgres';"