mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
45 lines
705 B
YAML
45 lines
705 B
YAML
dist: xenial
|
|
sudo: required
|
|
language: java
|
|
jdk:
|
|
- openjdk11
|
|
|
|
git:
|
|
depth: 3
|
|
|
|
addons:
|
|
postgresql: 10
|
|
# apt:
|
|
# packages:
|
|
# - mysql-server-5.7
|
|
# - mysql-client-core-5.7
|
|
# - mysql-client-5.7
|
|
|
|
services:
|
|
- docker
|
|
- postgresql
|
|
- mysql
|
|
|
|
before_script:
|
|
- ./.travis/setup_database
|
|
- mysql -u root -e 'CREATE DATABASE test_ebean;'
|
|
- mysql -u root -e "CREATE USER 'test_ebean'@'localhost' IDENTIFIED BY 'test';"
|
|
- mysql -u root -e "GRANT ALL ON test_ebean.* TO 'test_ebean'@'localhost';"
|
|
|
|
env:
|
|
- EBEAN_DB=h2
|
|
- EBEAN_DB=pg
|
|
# - EBEAN_DB=mysql
|
|
|
|
install: true
|
|
|
|
script:
|
|
- mvn -T 1C clean test
|
|
|
|
after_failure:
|
|
- ./.travis/print_surefire_reports
|
|
|
|
cache:
|
|
directories:
|
|
- $HOME/.m2
|