forked from jtidy/jtidy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (44 loc) · 5.31 KB
/
.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
41
42
43
44
45
46
47
dist: xenial
sudo: required
language: java
jdk:
- oraclejdk11
- openjdk8
- openjdk11
addons:
sonarcloud:
organization: jtidy-github
token:
secure: jpBEsJEcotUiJoLLVzoXwICY287wf/Tt4BGg6nQOIM10iF5XlUrdPFJoSwLAAnmkjXlcAczLcdqCqq9m4GtNB3TNW591ScO/H685E3mT4Iureea+1Nycw9S96EEoQRCeV0Lbo9cxc6iLWbOibtXfslJs3nZyIl1y+GiS3k0vAjzKbLEI/mvUSbJZYSDU+w6RtOFITW+td78O4Q/qtOOsjIoJDJUJ8jAiw8HpWkGQ/ko16by+JX57Wt8qNfQuy0f20xn7NnorK+mYStZ367g/QZa1z4ago/CwkuZ7MhS6yHwUNzYUPSK36KwLkU5oG2UYMnCQCA6xQo4vhXfOwpiV8PVFX33JDU0s3DbBc0cumyDAkrKDyCkZRcLLCk6nSv2E87eXugixJS9WwP8LB29dKiYBPrHI5eNlYoEjHhJoO37CsFtkVBwR80JxvvcPkYeDkvhfyj4omj4+ZWVX2UIB27PVoxOhsea0WdttxPSlzPhtLIBarJPAYQhWcTQxUkmUr+AGvMHzsFkmXFiHPBk6swY4eT8LlG7pbz1t59foAUDm19XHCnBfug9yjiEugw0sag7b6BcHPfo89zuiYR5t+s5xn2Noec7etcox0DBtbP/ojIFKowSy2T6m0PrYNw0+0Ud96qNjplesmLSjtQGCmPuOQbYwMmRhKCxYeVgaNYY=
jobs:
include:
- stage: Deploy
if: tag =~ ^[0-9]+.*
env:
- secure: "PwojT+dbyGlOFUpOV2dqSBcbfGMs0AyZaxYrfkgbpNyEq2VEl7Ns3aQNn0ofn5MFStgXCtU0bS3J/ZUb1ufPIuREVmxD32OOM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jkWNBbguzyXYmY8eL+pzlVbRPQsCFmYe/Es+3mhKQrXn1gBCq3k8boOCRPH5sslBTvrGslgpvDZpmytE8LIGDLDytT/Pzr+H10K0EnM/uwIj1Oa9ejzASZL6JaUBZg/3jhnUOGlD2o8psEWD4A=
file:
- ${HOME}/build/jtidy/jtidy/target/jtidy-${TRAVIS_TAG}.jar
- ${HOME}/build/jtidy/jtidy/target/jtidy-${TRAVIS_TAG}-javadoc.jar
- ${HOME}/build/jtidy/jtidy/target/jtidy-${TRAVIS_TAG}-sources.jar
- ${HOME}/build/jtidy/jtidy/target/jtidy-${TRAVIS_TAG}-test-sources.jar
on:
repo: jtidy/jtidy
branch: master
tags: true
skip_cleanup: true
script:
- openssl aes-256-cbc -K $encrypted_c6bc1d197429_key -iv $encrypted_c6bc1d197429_iv -in private-key.gpg.enc -out private-key.gpg -d
- gpg --import private-key.gpg
- mvn versions:set -DnewVersion=${TRAVIS_TAG}
- mvn clean deploy --settings settings.xml -DskipTests=true -B -U -Prelease
- stage: SonarQube Scan
if: tag IS blank
script:
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then sonar-scanner; fi' # sonar only on non-PRs