forked from oxygenxml/oxygen-batch-converter-addon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (32 loc) · 773 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
language: java
sudo: required
addons:
sonarcloud:
organization: "oxygenxml-github"
token:
secure: "${SONAR_CLOUD_TOKEN}"
jdk:
- oraclejdk8
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://${MY_GH_TOKEN_OXYGEN}:@github.com" > .git/credentials
- ./travis/checkForTag.sh
script:
- mvn clean
- mvn install org.jacoco:jacoco-maven-plugin:prepare-agent sonar:sonar
before_deploy:
- ./travis/deploy.sh
deploy:
provider: releases
api_key: ${MY_GH_TOKEN_OXYGEN}
file:
- target/oxygen-batch-converter-${TRAVIS_TAG}-plugin.jar
- target/addon.xml
skip_cleanup: true
on:
tags: true