-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
45 lines (45 loc) · 1.29 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
branches:
only:
- master
- "/^reverse-proxy-auth-sonar-plugin-.+$/"
language: java
jdk:
- oraclejdk8
sudo: false
cache:
directories:
- "$HOME/.m2/repository"
- "$HOME/.sonar/cache"
addons:
apt:
packages:
- graphviz
sonarqube: true
env:
global:
- secure: gYebEQVY4X8W9aLkZCLkVgtL8tPmW3MsVartw4Q68DMGGGxQagzMOu/QhfjD0qB4QeTdIP7k5M4ye/Y37d/RZGwr0oNg9EX0h6OKAhhQRRXioO+9eEraSl7fYz7kKYxVnuaoEziFagVLrQvX43bom3F7+sKQBtMixN2V9ip/sLA=
- secure: HMB/tw3WtFBms6p1cYm1WFvMX9Owt0QF8Sxdah7LZlQGvD3QWgbrfKu4EcGtrseWwQrhIl7MuhDVUA2M4Rsp5wdQPItJ3R7ZQrNBZpgiqPUCPARltUNuvXNr+QYod8giuPi0okN/93E6iqcQP/4h9MP0EZ3LCEexZFYsYzIfbdc=
before_install:
- openssl aes-256-cbc -K $encrypted_7560bbc32cbd_key -iv $encrypted_7560bbc32cbd_iv
-in deploy-keys.tar.enc -out deploy-keys.tar -d
- tar xf deploy-keys.tar -C $HOME && chmod go-rwx -R $HOME/.m2 $HOME/.ssh
install:
- mvn dependency:go-offline
before_script:
- mvn clean
script:
- mvn verify site
after_success:
- mvn sonar:sonar
deploy:
- provider: script
skip_cleanup: true
script: mvn deploy site-deploy
on:
branch: master
- provider: script
skip_cleanup: true
script: printf 'scm.tag=%1s\nscm.url=scm:git:https://[email protected]/%2s.git' "${TRAVIS_TAG}"
"${TRAVIS_REPO_SLUG}" > release.properties && mvn release:perform
on:
tags: true