3
3
directories :
4
4
- ' $HOME/.m2'
5
5
- ' $HOME/.sonar/cache'
6
- matrix :
7
- include :
8
- - os : linux
9
- dist : trusty
10
- sudo : required
11
- jdk : oraclejdk8
12
- - os : osx
13
- osx_image : xcode9.4
14
- before_install : dev/before_install
15
- install : true
16
- before_script : dev/before
17
6
env :
18
7
global :
19
8
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
20
9
# via the "travis encrypt" command using the project repo's public key
21
10
- secure : " O_cda5pWDBAP-O3_0nG5RQ"
22
- script : dev/main
23
11
addons :
24
12
coverity_scan :
25
13
project :
@@ -32,35 +20,49 @@ addons:
32
20
organization : " opengrok"
33
21
token :
34
22
secure : " ayjmifQPQgKt/ICGfKtLpa8LwBAXZlxKwaPyjvXDRHyf3lbXGKkOCspH/wSoersoV4ZLt5UfSGKeFh1MS0IXAwUOcPTcV3/DUmycJjxZ5z9KjgGKsu0Spo1xZWioS+p1bzN6cJcNlwihE97idLhVSvDProf6L+pn0dqw8Lfz2k0="
35
- deploy :
36
- # Pre-release
37
- - provider : releases
38
- script :
39
- - echo "$TRAVIS_TAG"
40
- - echo "$TRAVIS_BRANCH"
41
- - mvn -DskipTests=true -Dmaven.javadoc.skip=false -B -V package
42
- prerelease : true
43
- api_key :
44
- secure : bCywC9GdBIzLvLG3cgM9SgOAdMRQchmqEyKQZtIfK4iNzH3GjZwLMH91Oha0X3XU/n+nxGKw2E9qpYRzWlcbxHXqIgjFTt+hkt7zAldjjyWJnOcAYqdUDfsH3NqNQBqMBg8q7Bjc0LVS6PfpTpZliZISrL6KSyDprRg7C0S+HAk=
45
- file : distribution/target/opengrok-$TRAVIS_TAG.tar.gz
46
- skip_cleanup : true
47
- on :
48
- repo : oracle/opengrok
49
- tags : true
50
- condition : " $TRAVIS_TAG =~ rc[0-9]+$"
51
- branch : master
52
- # Full release
53
- - provider : releases
54
- script :
55
- - echo "$TRAVIS_TAG"
56
- - echo "$TRAVIS_BRANCH"
57
- - mvn -DskipTests=true -Dmaven.javadoc.skip=false -B -V package
58
- api_key :
59
- secure : bCywC9GdBIzLvLG3cgM9SgOAdMRQchmqEyKQZtIfK4iNzH3GjZwLMH91Oha0X3XU/n+nxGKw2E9qpYRzWlcbxHXqIgjFTt+hkt7zAldjjyWJnOcAYqdUDfsH3NqNQBqMBg8q7Bjc0LVS6PfpTpZliZISrL6KSyDprRg7C0S+HAk=
60
- file : distribution/target/opengrok-$TRAVIS_TAG.tar.gz
61
- skip_cleanup : true
62
- on :
63
- repo : oracle/opengrok
64
- tags : true
65
- condition : " ! $TRAVIS_TAG =~ rc[0-9]+$"
66
- branch : master
23
+ jobs :
24
+ include :
25
+ - stage : test
26
+ os : linux
27
+ dist : trusty
28
+ sudo : required
29
+ jdk : oraclejdk8
30
+ install : true
31
+ script : dev/main
32
+ before_install : dev/before_install
33
+ before_script : dev/before
34
+ - stage : test
35
+ os : osx
36
+ osx_image : xcode9.4
37
+ install : true
38
+ script : dev/main
39
+ before_install : dev/before_install
40
+ before_script : dev/before
41
+ - stage : deploy
42
+ name : Github Release
43
+ if : repo = "oracle/opengrok" AND tag IS present
44
+ before_install : dev/before_install
45
+ install : true
46
+ script : mvn -DskipTests=true -Dmaven.javadoc.skip=false -B -V package
47
+ deploy :
48
+ # Pre-release
49
+ - provider : releases
50
+ name : $TRAVIS_TAG
51
+ prerelease : true
52
+ api_key :
53
+ secure : bCywC9GdBIzLvLG3cgM9SgOAdMRQchmqEyKQZtIfK4iNzH3GjZwLMH91Oha0X3XU/n+nxGKw2E9qpYRzWlcbxHXqIgjFTt+hkt7zAldjjyWJnOcAYqdUDfsH3NqNQBqMBg8q7Bjc0LVS6PfpTpZliZISrL6KSyDprRg7C0S+HAk=
54
+ file : distribution/target/opengrok-$TRAVIS_TAG.tar.gz
55
+ skip_cleanup : true
56
+ on :
57
+ condition : $TRAVIS_TAG =~ rc[0-9]+$
58
+ all_branches : true
59
+ # Full release
60
+ - provider : releases
61
+ name : $TRAVIS_TAG
62
+ api_key :
63
+ secure : bCywC9GdBIzLvLG3cgM9SgOAdMRQchmqEyKQZtIfK4iNzH3GjZwLMH91Oha0X3XU/n+nxGKw2E9qpYRzWlcbxHXqIgjFTt+hkt7zAldjjyWJnOcAYqdUDfsH3NqNQBqMBg8q7Bjc0LVS6PfpTpZliZISrL6KSyDprRg7C0S+HAk=
64
+ file : distribution/target/opengrok-$TRAVIS_TAG.tar.gz
65
+ skip_cleanup : true
66
+ on :
67
+ condition : ! $TRAVIS_TAG =~ rc[0-9]+$
68
+ all_branches : true
0 commit comments