forked from sirixdb/sirix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (40 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
services:
- docker
language: java
jdk:
- openjdk15
branches:
only:
- master
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
jobs:
include:
- stage: test
name: "Source Build"
jdk: openjdk15
install: skip
script: ./gradlew clean build --info --stacktrace --refresh-dependencies
after_success:
- ./gradlew jacocoRootReport coveralls
- stage: deploy
name: "Deploy to Sonatype's snapshots repository"
if: type != pull_request AND env(SONATYPE_NEXUS_USERNAME) IS present
script: ./gradlew travisReleaseSnapshot --info
- stage: deploy
name: "Deploy to DockerHub"
if: type != pull_request
install: skip
script: bash docker_push.sh
notifications:
email:
on_failure: always
recipients:
after_failure:
- cat ./logs/sirix.log