-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
42 lines (32 loc) · 1 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
# Travis CI Java documentation can be found in:
# https://docs.travis-ci.com/user/languages/java/
# https://docs.travis-ci.com/user/reference/overview/#linux
dist: xenial
# This enables the 'defaults' to test java applications:
language: java
# https://docs.travis-ci.com/user/reference/xenial/#jvm-clojure-groovy-java-scala-support
jdk:
- openjdk11
cache:
directories:
- $HOME/.m2
# https://docs.travis-ci.com/user/job-lifecycle/
script:
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V -P '!oss-release,travis-ci'
- mvn test -DskipTests=false -B -P '!oss-release,travis-ci'
# tip: export CODECOV_TOKEN="xxx"
after_success:
- bash <(curl -s https://codecov.io/bash)
- bash <(curl -Ls https://coverage.codacy.com/get.sh)
before_script:
- git config --global core.autocrlf input
before_install:
- mysql -e 'CREATE DATABASE IF NOT EXISTS test;'
- psql -c 'create database test;' -U postgres
services:
- mysql
- mongodb
- redis-server
- postgresql
addons:
postgresql: "9.6"