-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (44 loc) · 1.15 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
dist: bionic
language: java
jdk:
- openjdk11
services:
- postgresql
- docker
addons:
postgresql: "10"
apt:
packages:
- postgresql-10
- postgresql-client-10
env:
global:
- PGPORT=5432
- SPRING_DATASOURCE_PASSWORD=
before_script:
- psql -c "CREATE DATABASE quiz OWNER postgres;" -U postgres
- psql -c "CREATE DATABASE quiztest OWNER postgres;" -U postgres
script:
- ./gradlew clean check --info --stacktrace --console=plain --max-workers=1 --no-daemon --build-cache -Dkotlin.colors.enabled=false
- ./gradlew codeCoverageReport
after_success:
- bash <(curl -s https://codecov.io/bash)
before_deploy:
- docker images
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- ./gradlew jibDockerBuild
deploy:
provider: script
script: docker push ncrawler/quiz
on:
branch: master
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
- rm -fr $HOME/.gradle/caches/*/fileHashes/
- rm -fr $HOME/.gradle/caches/jars-3/
cache:
directories:
- $HOME/.m2
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/