forked from mivek/MetarParser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (32 loc) · 822 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
dist: trusty
language: java
cache:
directories:
- '$HOME/.m2/repository'
- '$HOME/.sonar/cache'
addons:
sonarcloud:
organization: "mivek-github"
token:
secure: $SONARCLOUD_TOKEN
jdk: oraclejdk8
before_install:
# Retrieve keys only if build is not on a pull request
- bash scripts/before_install.sh
install:
- mvn compile test-compile
script:
# If the branch is master then the deploy goal is used otherwise the maven install is used
- bash scripts/script.sh
before_deploy:
- VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
deploy:
provider: releases
file: target/metarParser-${VERSION}.jar
api_key:
secure: $GITHUB_OATH
skip_cleanup: true
draft: true
name: ${VERSION}
on:
branch: master