-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
58 lines (53 loc) · 1.41 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
54
55
56
57
58
jobs:
include:
- stage: "Tests"
os: linux
language: java
jdk:
- openjdk11
script: ./gradlew clean test
- stage: "Deploy Jar and Native Linux application and Docker"
if: tag IS present
os:
- linux
language: java
jdk:
- openjdk11
script: ./gradlew clean shadowJar buildNativeApplication
deploy:
- provider: releases
api_key: $GITHUB_KEY
file_glob: true
skip_cleanup: true
file:
- "*/build/libs/kafka-consumer-lag-monitoring-*.jar"
- "*/build/dist/kafka-consumer-lag-monitoring-*.tar.gz"
on:
tags: true
- provider: script
script: ./gradlew jib
skip_cleanup: true
on:
tags: true
- provider: script
script: ./gradlew buildAndPushNativeApplicationDockerImage
skip_cleanup: true
on:
tags: true
- stage: "Deploy Native Mac application"
if: tag IS present
os: osx
osx_image: xcode9.4
language: java
jdk:
- openjdk11
script: ./gradlew clean buildNativeApplication
deploy:
- provider: releases
api_key: $GITHUB_KEY
file_glob: true
skip_cleanup: true
file:
- "*/build/dist/kafka-consumer-lag-monitoring-*.tar.gz"
on:
tags: true