forked from SonarSource/sonar-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (46 loc) · 1.81 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
language: java
sudo: false
git:
submodules: false
install: true
script: "./travis.sh"
matrix:
fast_finish: true
include:
# CI trigger analysis
- env: TEST=CI
# OS X 10.11 - default with jdk 8
- env: TEST=CI_MACOSX
os: osx
osx_image: xcode7.3
# ruling projects
- env: TEST=ruling PROJECT=jboss_ejb3_tutorial SQ_VERSION=LATEST_RELEASE
- env: TEST=ruling PROJECT=apache_commons_beanutils SQ_VERSION=LATEST_RELEASE
- env: TEST=ruling PROJECT=guava SQ_VERSION=LATEST_RELEASE
- env: TEST=ruling PROJECT=sonarqube_server SQ_VERSION=LATEST_RELEASE
- env: TEST=ruling PROJECT=jdk_1_6_source SQ_VERSION=LATEST_RELEASE
before_script:
# https://github.com/travis-ci/travis-ci/issues/2839
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export JAVA_HOME=$(/usr/libexec/java_home); fi
before_cache:
# remove all the artifacts that are installed in local repo because of mvn deploy
- rm -rf $HOME/.m2/repository/org/sonarsource/java
- find $HOME/.m2 -name resolver-status.properties -exec rm {} \;
cache:
directories:
- '$HOME/.m2/repository'
- '$HOME/.sonar'
- '$HOME/jvm'
notifications:
email: false
hipchat:
rooms:
secure: eZCNoMOh1nR+aTJsnroK7DWHgurwtQoOunNeC0pIAURne4Y7Rlztcn2uOGgqCzSZfn0ucV8Z7RSMp2ANOW7tiAYoF86/an/JoP5wnEyLo3aQFg6Dakw5gdFBfnQpVMatNAVgJDVcqhsjCR0WJy6vo0Re8y1Cm1409hJb+lCjhsM=
template:
- '<a href="%{build_url}">SonarJava#%{build_number}</a> - <a href="https://github.com/%{repository_slug}/tree/%{branch}">%{branch}</a> - <a href="%{compare_url}">%{commit}</a> %{commit_message} by %{author}'
format: html
notify: true
webhooks:
urls:
- secure: jioMmc06IBRAgbWiyUP8T0ZsWPn+QhAf/UoGocYo5la20RMMb0M5A5Lpl7yvyGFv+PmC2SIlG3FHf61nRvHNaq1zSWGwOgmGZUrhz/tCD3caSB+BJoba46pcYL/W/V7X2nXMzhJiCbU3U4JoGwVUYqt3Ug1Jl/oLBk2IUp2U0zg=
on_start: always