forked from elexis/elexis-3-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
68 lines (56 loc) · 2.29 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
---
dist: xenial # we need xenial to have mysql 5.7
language: java
install: mvn -V -DskipTests -Dmaven.javadoc.skip=true -B validate
matrix:
include:
- name: "Deutsch"
env: NL=de_CH
- name: "English"
env: NL=en_US
- name: "French"
env: NL=fr_CH
allow_failures:
- name: "English"
- name: "French"
script:
- mvn -V --quiet clean verify -Dtycho.localArtifacts=ignore -DNL=$NL -DskipTests
notifications:
email:
jdk: openjdk8 # oraclejdk8 is no longer supported by travis-ci
cache:
directories:
- $HOME/.m2
addons:
postgresql: "9.6"
services:
- mysql
- xvfb
env:
global:
- PGPASSWORD=elexisTest
- JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64
- PATH=$(echo "$PATH" | sed -e 's/:\/usr\/local\/lib\/jvm\/openjdk11\/bin//')
# Try to start xvfb as indicated by https://docs.travis-ci.com/user/gui-and-headless-browsers/#using-xvfb-directly
# - "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x24"
# - sleep 3
before_install:
- java -version
# mysql fails currently with fist error in ch.elexis.core.data.tests
# testDatabaseUpdatedToRequiredVersion[mysql 5.1](ch.elexis.data.Test_DBInitialState) Time elapsed: 0.001 sec <<< ERROR!
# ch.rgw.tools.JdbcLinkSyntaxException: Fehler bei: INSERT INTO traces VALUES(1542366761342, 'travis-job-76cef79e-5c90-44d8-a68f-ab...', 'ut_user_h2', 'W globalCfg key [ElexisVersion] => value [3.7.0.qualifier]') (SQLState: 42S02)
- mysql -e 'SHOW VARIABLES LIKE "%case%";'
- echo "[mysqld]" | sudo tee /etc/mysql/mysql.conf.d/lowercase.cnf
- echo "lower_case_table_names = 1" | sudo tee --append /etc/mysql/mysql.conf.d/lowercase.cnf
- cat /etc/mysql/mysql.conf.d/lowercase.cnf
- sudo service mysql restart
- mysql --version
- mysql -e 'SHOW VARIABLES LIKE "%case%";'
- mysql -e 'SHOW VARIABLES LIKE "%version%";'
- mysql -e 'CREATE DATABASE unittests;'
- mysql -e "grant all on unittests.* to elexisTest@localhost identified by 'elexisTest';"
- psql --version
- psql -c "create user elexisTest with UNENCRYPTED password 'elexisTest';" -U postgres
- psql -c "create database unittests;" -U postgres
- psql -c "grant all privileges on database unittests to elexisTest;" -U postgres