-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (33 loc) · 934 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
language: java
sudo: required
addons:
sonarcloud:
organization: "oxygenxml-github"
token: "${SONAR_CLOUD_TOKEN}"
jdk:
- oraclejdk8
dist: trusty
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 install
- wget https://raw.githubusercontent.com/oxygenxml/oxygen-dita-references-view/master/travis/install-openjdk11.sh && . ./install-openjdk11.sh
- mvn 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-dita-outgoing-references-view-${TRAVIS_TAG}-plugin.jar
- target/addon.xml
skip_cleanup: true
on:
tags: true