forked from oVirt/ovirt-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (36 loc) · 1.38 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
---
language: java
jdk:
- openjdk8
services:
- postgresql
install: true
before_script:
- psql -U travis -c "CREATE USER engine_test WITH PASSWORD 'test';"
- psql -U travis -d template1 -c "CREATE DATABASE engine_dao_tests OWNER engine_test;"
- psql -U travis -d engine_dao_tests -c "CREATE EXTENSION IF NOT EXISTS \"uuid-ossp\";"
- sudo rm -rf /etc/securetty # Work around ServletUtilsTest test
script:
- "PGPASSWORD=\"test\" ./packaging/dbscripts/schema.sh -d engine_dao_tests -u engine_test -s localhost -p 5433 -c apply"
- for i in `seq 1 60`; do sleep 60; echo 'keep alive'; done & mvn --quiet clean org.jacoco:jacoco-maven-plugin:prepare-agent install -P enable-dao-tests sonar:sonar -Dsonar.host.url=https://sonarqube.com -Dsonar.login=$SONAR_TOKEN -Dengine.db.username=engine_test -Dengine.db.password=test -Dengine.db.url=jdbc:postgresql://localhost:5433/engine_dao_tests
env:
global:
- secure: kgBwT3IHk1vg1PHD4KKqkIOFlv4MGkOA+IK+nsTbPRJEvWpzZSgpHLuL+/2YuB4tntNMMj3LHwPTSJmaGLRdxaSjjv0MfzQA/fudLqTJ+FL3MuA++YcLSfjj6wj1dlMRj+0vYgCQcBMKTktDhGMdE6gUh42AQBzywqe1IcnX5Qs=
- PGPORT=5433
- PGUSER=travis
- PGHOST=""
addons:
postgresql: "10"
apt:
packages:
- postgresql-10
- postgresql-client-10
- postgresql-contrib-10
cache:
directories:
- $HOME/.m2
before_cache:
- rm -rf $HOME/.m2/repository/org/ovirt/
branches:
only:
- master