forked from javers/javers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
27 lines (26 loc) · 808 Bytes
/
.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
language: java
jdk:
- openjdk11
services:
- postgresql
- mysql
- mongodb
before_script:
- psql -c 'create database travis_ci_test;' -U postgres
- psql -c 'create schema j_some authorization postgres;' -U postgres travis_ci_test
- psql -c "CREATE ROLE javers LOGIN PASSWORD 'javers' SUPERUSER;" -U postgres
- psql -c 'SHOW server_version_num;' -U postgres
- mysql -e 'CREATE DATABASE travis_ci_test;' -u root
- mysql -e "CREATE USER 'javers'@'localhost' IDENTIFIED BY 'javers';" -u root
- mysql -e "GRANT ALL PRIVILEGES ON travis_ci_test.* TO 'javers'@'localhost' WITH GRANT OPTION;" -u root
- mongo --eval 'db.version();'
script:
- ./gradlew build
- ./gradlew integrationTest
deploy:
skip_cleanup: true
provider: script
script: travis/deployToSonatype.sh
on:
tags: true
branch: master