forked from steve-community/steve
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
49 lines (42 loc) · 2.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
49
sudo: false
language: java
jdk: openjdk11
services: mysql
# install dependencies
install: mvn dependency:go-offline -B -V
before_script:
# initalize empty database and privileges
- mysql -uroot -e "CREATE DATABASE stevedb_test_2aa6a783d47d;" -v
- mysql -uroot -e "GRANT ALL PRIVILEGES ON stevedb_test_2aa6a783d47d.* TO 'steve'@'localhost' IDENTIFIED BY 'changeme';" -v
- mysql -uroot -e "GRANT SELECT ON mysql.proc TO 'steve'@'localhost' IDENTIFIED BY 'changeme';" -v
# grant super privilege required by MariaDB running with log-bin
- mysql -uroot -e "GRANT SUPER ON *.* TO 'steve'@'localhost' IDENTIFIED BY 'changeme';" -v
# start the actual build
script:
- mvn -Dmaven.javadoc.skip=true clean package -Ptest -B -V
- java -Djava.net.preferIPv4Stack=true -jar target/steve.jar &
- sleep 30
- 'grep -C 50 -e "Exception: " ~/logs/steve.log && exit 255 || true'
- elinks -dump -no-references http://localhost:8080/steve/manager/signin
- killall java
# coverity_scan settings
#
env:
global:
- secure: "e2ou0BHMu9fd2daC9pXhjvkZ3CP3XTaYWSIehM4JDWxnVAn1jJayiQOpWoNKeD+RJV24ND1I2WvjQGqu6HVV+CkVZ8kHVCvb7fQHbM4P8UKaMFts8KR1gIiAYc7ja+C/jLnXVTofrhUTinOdhFs1lTONhGa4g/+nWq/6KXXP52/WKsKPgNKOvOzhlJf2QTprOkQVr4tIhUd3K9lf6qORkOIwpcfmQpFfccbHPzoIxGpke+a0Q5+H5/o3gNhOe7w31wBaX90OzfYRA5WyjfbDmI2tjkELQuvitR/DePRK0sLfRKfdfBRD/20pEbG2NzjHCBWQx8CYhDClAuH/sJc3M95qLMCiuNEAcpWzccAMB+At9uMiQfzqNdqTUYPZYQwBQgsPqffG2DyWg6u7eNZu3z0QjLHDxqqOWJa6Hggx9V5nqNNBl0wbrkMjwbWirbtg3yS0i9OLTd8oK64+sYtXPJlBw4Qr+gZplSj/hv6NbcpMKrvOK/BAP+G087m2cVvMpDE9IP7Lo6YXIo5ilSbr4KKs01omvGr1k4eJR2/+esyqanPFuFzhHMRcG0qc0zM+gWlkm/9ID16gMnRQOZTA7UGEeiRpGhVyz87/khg6ajiE2NTxKc1EuHrk18qNulRBc+LjeLLMcS11zTiV6PJ6QkZGheS3+xVp/Nn8DrCC3lE="
addons:
mariadb: "10.1"
coverity_scan:
project:
name: "RWTH-i5-IDSG/steve"
description: "SteVe - Steckdosenverwaltung"
notification_email: [email protected]
build_command_prepend:
build_command: "mvn package"
branch_pattern: master
apt:
packages:
- elinks
cache:
directories:
- $HOME/.m2