forked from admin-ch/CovidCode-Service
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.travis.yml
More file actions
39 lines (31 loc) · 803 Bytes
/
.travis.yml
File metadata and controls
39 lines (31 loc) · 803 Bytes
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
language: java
jdk:
- oraclejdk11
# see https://blog.travis-ci.com/2014-12-17-faster-builds-with-container-based-infrastructure
sudo: false
# cache the build tool's caches
cache:
directories:
- $HOME/.m2
- $HOME/.gradle
addons:
sonarcloud:
organization: "admin-ch"
script:
- mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent verify sonar:sonar
before_deploy:
# Set up git user name and tag this commit
- export TZ=Europe/Zurich
- export TRAVIS_TAG=${TRAVIS_TAG:-$(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1)}
- git tag $TRAVIS_TAG
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file: target/ha-authcode-generation-service.jar
skip_cleanup: true
on:
branch: master
branches:
except:
- /^[v]*\d+\.\d+(\.\d+)?(-\S*)?$
- /^\d{14}-\S*$