forked from steve-community/steve
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
90 lines (80 loc) · 2.44 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
language: java
# install dependencies
install: mvn dependency:resolve dependency:resolve-plugins -s .travis-maven-settings.xml -B -V
before_script:
# Display Versions
- mysqld -V
- java -version
- mvn -version
# initalize empty database and privileges
- sudo mysql -uroot -e "CREATE DATABASE stevedb_test_2aa6a783d47d;" -v
- sudo mysql -uroot -e "CREATE USER 'steve'@'localhost' IDENTIFIED BY 'changeme';" -v
- sudo mysql -uroot -e "GRANT ALL PRIVILEGES ON stevedb_test_2aa6a783d47d.* TO 'steve'@'localhost';" -v
- sudo mysql -uroot -e "GRANT SELECT ON mysql.proc TO 'steve'@'localhost';" -v || true
# grant super privilege required by MariaDB running with log-bin
- sudo mysql -uroot -e "GRANT SUPER ON *.* TO 'steve'@'localhost';" -v || true
# start the actual build
script:
- mvn -s .travis-maven-settings.xml -Dmaven.javadoc.skip=true clean package -Ptest -B -V || travis_terminate 1
- 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
jobs:
include:
- name: OpenJDK11 with MySQL 8.0 (Ubuntu LTS 20.04)
jdk: openjdk11
dist: focal
services: mysql
- name: OpenJDK15 with MySQL 8.0 (Ubuntu LTS 20.04)
jdk: openjdk15
dist: focal
services: mysql
- name: OpenJDK11 with MySQL 5.7 (Ubuntu LTS 16.04)
jdk: openjdk11
dist: xenial
services: mysql
- name: OpenJDK15 with MySQL 5.7 (Ubuntu LTS 16.04)
jdk: openjdk15
dist: xenial
services: mysql
- name: OpenJDK11 with MariaDB 10.3 (Ubuntu LTS 20.04)
jdk: openjdk11
dist: focal
addons:
mariadb: "10.3"
apt:
packages:
- elinks
- name: OpenJDK15 with MariaDB 10.3 (Ubuntu LTS 20.04)
jdk: openjdk15
dist: focal
addons:
mariadb: "10.3"
apt:
packages:
- elinks
- name: OpenJDK11 with MariaDB 10.5 (Ubuntu LTS 20.04)
jdk: openjdk11
dist: focal
addons:
mariadb: "10.5"
apt:
packages:
- elinks
- name: OpenJDK15 with MariaDB 10.5 (Ubuntu LTS 20.04)
jdk: openjdk15
dist: focal
addons:
mariadb: "10.5"
apt:
packages:
- elinks
addons:
apt:
packages:
- elinks
cache:
directories:
- $HOME/.m2