Skip to content

Commit 15ce4f3

Browse files
author
Vladimir Kotal
authored
Merge branch 'master' into suggester_java9plus_fix
2 parents dc3f1a4 + 00ed24f commit 15ce4f3

File tree

158 files changed

+4604
-2748
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

158 files changed

+4604
-2748
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,4 @@ pmd.bat
5151
.idea
5252
*.pyc
5353
.wercker
54+
.DS_Store

.travis.yml

Lines changed: 46 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,11 @@ cache:
33
directories:
44
- '$HOME/.m2'
55
- '$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
176
env:
187
global:
198
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
209
# via the "travis encrypt" command using the project repo's public key
2110
- secure: "O_cda5pWDBAP-O3_0nG5RQ"
22-
script: dev/main
2311
addons:
2412
coverity_scan:
2513
project:
@@ -32,35 +20,49 @@ addons:
3220
organization: "opengrok"
3321
token:
3422
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

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ Feel free to participate in discussion on the mailing lists:
5151

5252
To subscribe, send email to `<mailing_list_name>[email protected]`
5353

54+
There are also Slack channels on https://opengrok.slack.com/
55+
5456
## 6. Demo
5557

5658
Visit <http://demo.opengrok.org>

apiary.apib

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Besides `/suggester` and `/search` endpoints, everything is accessible from `loc
2424
</java>
2525
```
2626

27-
### sets configuration from XML representation [POST]
27+
### sets configuration from XML representation [PUT]
2828

2929
+ Request (application/xml)
3030
+ Body
@@ -383,4 +383,4 @@ Repository type is separated from the repository path with a colon.
383383
/foo bar
384384
/foo/foo bar bar
385385

386-
+ Response 204
386+
+ Response 204

appveyor.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ environment:
44
MAVEN_VERSION: 3.5.0
55
matrix:
66
- JAVA_HOME: C:\Program Files\Java\jdk1.8.0
7+
PYTHON: C:\Python34
78
install:
89
- ps: |
910
Add-Type -AssemblyName System.IO.Compression.FileSystem
@@ -14,9 +15,10 @@ install:
1415
}
1516
- cmd: SET M2_HOME=C:\maven\apache-maven-%MAVEN_VERSION%
1617
# Prepend Java entry, remove Ruby entry (C:\Ruby193\bin;) from PATH
17-
- cmd: SET PATH=%M2_HOME%\bin;%JAVA_HOME%\bin;%PATH:C:\Ruby193\bin;=%;
18+
- cmd: SET PATH=%M2_HOME%\bin;%JAVA_HOME%\bin;%PYTHON%;%PATH:C:\Ruby193\bin;=%;
1819
- cmd: mvn --version
1920
- cmd: java -version
21+
- cmd: python --version
2022
- ps: |
2123
Add-Type -AssemblyName System.IO.Compression.FileSystem
2224
if (!(Test-Path -Path "C:\uctags" )) {

dev/before

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/bin/bash
22

3+
echo "Environment variables:"
4+
env | sort
5+
6+
echo "SCM versions:"
37
if `which bk`; then bk --version; fi
48
if `which hg`; then hg --version; fi
59
if `which git`; then git --version; fi

dev/before_install

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,48 @@
22

33
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
44
sudo apt-get update -qq
5-
sudo apt-get install -qq cvs git mercurial cssc bzr subversion monotone rcs rcs-blame python3 python3-pip pep8 nodejs;
5+
if [[ $? != 0 ]]; then
6+
echo "cannot update"
7+
exit 1
8+
fi
9+
10+
sudo apt-get install -qq cvs git mercurial cssc bzr subversion monotone rcs rcs-blame python3 python3.4-venv python3-pip nodejs
11+
if [[ $? != 0 ]]; then
12+
echo "cannot install extra packages"
13+
exit 1
14+
fi
15+
16+
# Bitkeeper install failure is not critical, so exit code is not checked.
617
sudo ./dev/install-bitkeeper.sh
7-
sudo pip3 install --upgrade pip
8-
sudo pip3 install flake8
18+
19+
sudo ./dev/install-python-packages.sh
20+
if [[ $? != 0 ]]; then
21+
echo "cannot install Python packages"
22+
exit 1
23+
fi
924
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
1025
brew update
11-
brew install ctags cvs node
26+
27+
brew install cvs
28+
if [[ $? != 0 ]]; then
29+
echo "cannot install extra packages"
30+
exit 1
31+
fi
32+
1233
brew upgrade python
13-
pip3 install pep8 flake8
34+
35+
./dev/install-python-packages.sh
36+
if [[ $? != 0 ]]; then
37+
echo "cannot install Python packages"
38+
exit 1
39+
fi
1440
fi
1541

1642
sudo ./dev/install-universal_ctags.sh
43+
if [[ $? != 0 ]]; then
44+
echo "cannot install Universal ctags"
45+
exit 1
46+
fi
1747

1848
# for API blueprint verification
1949
npm install drafter

dev/install-python-packages.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
python3 -m pip install --upgrade pip
4+
5+
python3 -m pip install pep8 virtualenv
6+
if [[ $? != 0 ]]; then
7+
echo "cannot install Python packages"
8+
exit 1
9+
fi

dev/main

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,7 @@ if [ "x$TRAVIS_REPO_SLUG" == "xoracle/opengrok" ]; then
1818
fi
1919
fi
2020

21-
mvn -B -V verify $extra_args
22-
node dev/parse.js
21+
ret=0
22+
mvn -B -V verify $extra_args || ret=1
23+
node dev/parse.js || ret=1
24+
exit $ret

distribution/assembly.xml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,21 @@
1919
<outputDirectory>lib</outputDirectory>
2020
<destName>source.war</destName>
2121
</file>
22+
<file>
23+
<source>${project.basedir}/../opengrok-tools/${project.build.directory}/dist/opengrok-tools-${project.python.package.version}.tar.gz</source>
24+
<outputDirectory>tools</outputDirectory>
25+
<destName>opengrok-tools.tar.gz</destName>
26+
</file>
27+
<file>
28+
<source>${project.basedir}/../opengrok-tools/README-dist.txt</source>
29+
<outputDirectory>tools</outputDirectory>
30+
<destName>README.txt</destName>
31+
</file>
32+
<file>
33+
<source>${project.basedir}/../opengrok-tools/${project.build.directory}/dist/logging.properties.template</source>
34+
<outputDirectory>doc</outputDirectory>
35+
<destName>logging.properties.template</destName>
36+
</file>
2237
</files>
2338
<fileSets>
2439
<fileSet>
@@ -39,13 +54,6 @@
3954
<include>opengrok.1</include>
4055
</includes>
4156
</fileSet>
42-
<fileSet>
43-
<directory>${project.basedir}/../tools/src/main/python</directory>
44-
<outputDirectory>bin</outputDirectory>
45-
<includes>
46-
<include>*.py</include>
47-
</includes>
48-
</fileSet>
4957
<fileSet>
5058
<directory>${project.build.directory}/../lib</directory>
5159
<outputDirectory>lib/lib</outputDirectory>

0 commit comments

Comments
 (0)