forked from kitodo/kitodo-production
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (36 loc) · 1.26 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
# Travis continuous integration for kitodo-production
language: java
cache:
dist: trusty
jdk:
- oraclejdk8
- openjdk8
sudo: required
addons:
firefox: "55.0"
apt:
sources:
- mysql-5.7-trusty
packages:
- mysql-server
env: DB=mysql
services:
- mysql
script:
- mvn clean install -B -Pall-tests,flyway,checkstyle,findbugs,!development && mvn clean install -B -Pselenium,!development
# install: true is deactivating the separate install-step, which runs before the script
install: true
before_install:
before_script:
- cp config/database.yml.travis config/database.yml
- cp Kitodo-DataManagement/src/main/resources/db/config/flyway.properties.travis Kitodo-DataManagement/src/main/resources/db/config/flyway.properties
- sudo mysql_upgrade -u root
- sudo service mysql restart
- mysql -u root -e 'CREATE DATABASE kitodo;'
- mysql -u root -e "CREATE USER 'kitodo'@'localhost' IDENTIFIED BY 'kitodo';"
- mysql -u root -e "GRANT ALL ON kitodo.* TO 'kitodo'@'localhost';"
- mysql -u root kitodo < Kitodo/setup/schema.sql
- export DISPLAY=:99.0
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
- export MAVEN_OPTS=-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn