forked from oracle/opengrok
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
66 lines (66 loc) · 2.16 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
language: java
cache:
directories:
- '$HOME/.m2'
- '$HOME/.sonar/cache'
matrix:
include:
- os: linux
dist: trusty
sudo: required
jdk: oraclejdk8
- os: osx
osx_image: xcode8.3
before_install: dev/before_install
install: true
before_script: dev/before
env:
global:
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "O_cda5pWDBAP-O3_0nG5RQ"
script: dev/main
addons:
coverity_scan:
project:
name: "OpenGrok/OpenGrok"
description: "Build submitted via Travis CI"
branch_pattern: "coverity_scan"
# build_command_prepend: "mvn clean"
build_command: "mvn -DskipTests=true -Dmaven.javadoc.skip=false -B -V compile"
sonarcloud:
organization: "opengrok"
token:
secure: "ayjmifQPQgKt/ICGfKtLpa8LwBAXZlxKwaPyjvXDRHyf3lbXGKkOCspH/wSoersoV4ZLt5UfSGKeFh1MS0IXAwUOcPTcV3/DUmycJjxZ5z9KjgGKsu0Spo1xZWioS+p1bzN6cJcNlwihE97idLhVSvDProf6L+pn0dqw8Lfz2k0="
deploy:
# Pre-release
- provider: releases
script:
- echo "$TRAVIS_TAG"
- echo "$TRAVIS_BRANCH"
- mvn -DskipTests=true -Dmaven.javadoc.skip=false -B -V package
prerelease: true
api_key:
secure: bCywC9GdBIzLvLG3cgM9SgOAdMRQchmqEyKQZtIfK4iNzH3GjZwLMH91Oha0X3XU/n+nxGKw2E9qpYRzWlcbxHXqIgjFTt+hkt7zAldjjyWJnOcAYqdUDfsH3NqNQBqMBg8q7Bjc0LVS6PfpTpZliZISrL6KSyDprRg7C0S+HAk=
file: distribution/target/opengrok-$TRAVIS_TAG.tar.gz
skip_cleanup: true
on:
repo: oracle/opengrok
tags: true
condition: "$TRAVIS_TAG =~ rc[0-9]+$"
branch: master
# Full release
- provider: releases
script:
- echo "$TRAVIS_TAG"
- echo "$TRAVIS_BRANCH"
- mvn -DskipTests=true -Dmaven.javadoc.skip=false -B -V package
api_key:
secure: bCywC9GdBIzLvLG3cgM9SgOAdMRQchmqEyKQZtIfK4iNzH3GjZwLMH91Oha0X3XU/n+nxGKw2E9qpYRzWlcbxHXqIgjFTt+hkt7zAldjjyWJnOcAYqdUDfsH3NqNQBqMBg8q7Bjc0LVS6PfpTpZliZISrL6KSyDprRg7C0S+HAk=
file: distribution/target/opengrok-$TRAVIS_TAG.tar.gz
skip_cleanup: true
on:
repo: oracle/opengrok
tags: true
condition: "! $TRAVIS_TAG =~ rc[0-9]+$"
branch: master