forked from JavaOPs/topjava
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (24 loc) · 828 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
27
28
29
30
# https://docs.travis-ci.com/user/languages/java/
language: java
jdk: openjdk15
#https://dzone.com/articles/travis-ci-tutorial-java-projects
cache:
directories:
- $HOME/.m2
# https://docs.travis-ci.com/user/database-setup/#PostgreSQL
before_script:
- psql -c 'create database topjava' -U postgres
- psql -c 'create user "user"; grant all privileges on database topjava to "user"' -U postgres
# https://docs.travis-ci.com/user/customizing-the-build#Building-Specific-Branches
branches:
only:
- master
# https://stackoverflow.com/a/49852690/548473:
services:
- postgresql
#https://docs.travis-ci.com/user/environment-variables#Default-Environment-Variables
env:
- TOPJAVA_ROOT=$TRAVIS_BUILD_DIR
# https://docs.travis-ci.com/user/notifications#Configuring-email-notifications
#notifications:
# email: false