forked from spotify/heroic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (37 loc) · 944 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
language: java
jdk:
- openjdk8
branches:
only:
- master
- /^(?i:master)-.*$/
- /^[0-9]+.[0-9]+.[0-9]+$/
cache:
directories:
- $HOME/.m2
- .cache
env:
global:
- DEBIAN_FRONTEND=noninteractive
- PUBSUB_EMULATOR_HOST=localhost:8085
before_install:
- curl https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-243.0.0-linux-x86_64.tar.gz | tar xzf -
- ./google-cloud-sdk/install.sh --quiet --usage-reporting false --additional-components pubsub-emulator beta
install:
- tools/install-repackaged
before_script:
- |
./google-cloud-sdk/bin/gcloud beta emulators pubsub start &
PUBSUB_PID=$!
script:
- ./gradlew --info check jacocoRootReport
after_script:
- kill -9 $PUBSUB_PID
after_success:
- bash <(curl -s https://codecov.io/bash)
deploy:
# trigger docker hub build
on:
tags: true
provider: script
script: bash .scripts/trigger_docker_hub.sh