forked from oxygenxml/oxygen-dita-prolog-updater-addon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (34 loc) · 791 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
language: java
sudo: required
addons:
sonarcloud:
organization: "oxygenxml-github"
token:
secure: "${SONAR_CLOUD_TOKEN}"
jdk:
- oraclejdk8
cache:
directories:
- $HOME/.m2
matrix:
fast_finish: true
install: true
before_script:
- chmod +x travis/deploy.sh
- chmod +x travis/checkForTag.sh
- git config credential.helper "store --file=.git/credentials"
- echo "https://${PROLOG_TOKEN}:@github.com" > .git/credentials
- ./travis/checkForTag.sh
script:
- mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent install sonar:sonar
before_deploy:
- ./travis/deploy.sh
deploy:
provider: releases
api_key: ${PROLOG_TOKEN}
file:
- target/oxygen-dita-prolog-updater-${TRAVIS_TAG}-plugin.jar
- target/addon.xml
skip_cleanup: true
on:
tags: true