forked from alfio-event/alf.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (44 loc) · 1.3 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
language: java
dist: xenial
sudo: required
install:
- TERM=dumb ./gradlew -q assemble
matrix:
include:
- name: postgresql 9.6
jdk: openjdk11
env: PROFILE="-Dspring.profiles.active=travis -Ddbenv=PGSQL-TRAVIS -Dpgsql9.6"
addons:
postgresql: "9.6"
- name: postgresql 10
jdk: openjdk11
env: PROFILE="-Dspring.profiles.active=travis -Ddbenv=PGSQL-TRAVIS -Dpgsql10"
addons:
postgresql: "10"
- name: postgresql 11
jdk: openjdk11
env: PROFILE="-Dspring.profiles.active=travis -Ddbenv=PGSQL-TRAVIS -Dpgsql11"
before_install:
- sudo apt-get update
- sudo apt-get --yes remove postgresql\*
- sudo apt-get install -y postgresql-11 postgresql-client-11
- sudo cp /etc/postgresql/{9.6,11}/main/pg_hba.conf
- sudo service postgresql restart 11
services:
- postgresql
addons:
postgresql: "11.2"
before_script:
- psql --version
- psql -c 'create database alfio;' -U postgres
script:
- TERM=dumb ./gradlew build jacocoTestReport $PROFILE
after_success:
./gradlew coveralls
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/