Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync forked repo #1

Merged
merged 118 commits into from
Feb 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
118 commits
Select commit Hold shift + click to select a range
beedb50
Add tarball creating and uploading CI job for OpenSUSE and Ubuntu.
mcserep Nov 30, 2020
503d684
added quotation marks to databasename (squashed) (#489)
matebelenyesi Dec 2, 2020
6bb381b
Update ctags to version 5.9
mcserep Dec 2, 2020
15d5f73
Merge pull request #496 from Ericsson/tarball
mcserep Dec 16, 2020
ecb8d92
CallExpr can be applied to a function pointer
bruntib Dec 28, 2020
be58a0a
Merge pull request #502 from bruntib/func_ptr_tag
mcserep Jan 9, 2021
d7c2b51
Rename cacheFiles() function to reloadCache() (#501)
bruntib Jan 9, 2021
f9415a4
Github Actions jobs (#503)
intjftw Jan 13, 2021
4cc4014
CI: add branch name to tarball names.
mcserep Jan 14, 2021
149aef0
Thrift and ODB cache for GitHub Actions.
mcserep Jan 17, 2021
c7fb235
Github actions parsing test.
intjftw Jan 17, 2021
591a8c3
Parse CodeCompass with Github Actions.
intjftw Feb 2, 2021
4da3680
Merge pull request #508 from mcserep/github_actions_cache2
mcserep Feb 3, 2021
f40cb4e
Displaying build log messages when clicking on the parse status label.
intjftw Feb 5, 2021
5928ce8
GitHub actions: updating apt-get before package install
mcserep Feb 13, 2021
c63d041
Checking if the result of a query or query_one function is not empty …
matebelenyesi Feb 13, 2021
0858b06
Using already defined BuildDialog instead of creating a new one each …
mcserep Feb 13, 2021
fdcef40
Merge pull request #512 from mcserep/build_logs
intjftw Feb 13, 2021
2065688
CI: Trigger tarball build in GitLab automatically if GitHub Action te…
mcserep Feb 13, 2021
e3f32a6
Merge pull request #513 from Ericsson/ci
intjftw Feb 15, 2021
34b9f31
Building and pushing images to Dockerhub.
intjftw Feb 15, 2021
1b45875
Merge pull request #514 from mcserep/ga_ci_docker
mcserep Feb 16, 2021
a97086d
Replace Travis CI badge with GitHub Actions and GitLab CI badges.
mcserep Feb 17, 2021
893f271
Skip circular symlinks (and other possible failures from fs::exists) …
intjftw Feb 18, 2021
04826d2
Fix C++ parser relative path
bruntib Feb 20, 2021
c8dde33
Finding circular symlinks (and other failures).
intjftw Feb 22, 2021
3b716e1
Merge pull request #516 from bruntib/fix_cpp_parser_relative_path
mcserep Feb 23, 2021
12aa416
Merge pull request #515 from mcserep/search_boost
mcserep Feb 24, 2021
84eacca
Send page_view event to Google Analytics when the content of a file i…
mcserep Mar 9, 2021
1485133
Merge pull request #520 from mcserep/ga-file-content-load
intjftw Mar 10, 2021
d6ebc56
Sanitize AstValue before using in regexp.
mcserep Mar 10, 2021
5dd6b5f
Fix multiple silent failures in CppParserTest related to ODB queries,…
mcserep Mar 10, 2021
37a4116
CodeCompass shall be compiled in Debug mode in the CI, so when execut…
mcserep Mar 10, 2021
a8ae216
Getting the size of a query result is not supported in SQLite, only e…
mcserep Mar 10, 2021
f7eef38
Merge pull request #522 from mcserep/fix-syntax-highlight
intjftw Mar 25, 2021
317addc
Merge pull request #523 from mcserep/cppparsertest-fixes
intjftw Apr 13, 2021
e39c213
Fix libmagic download path in tarball building script
mcserep Apr 13, 2021
3e547c1
Add PostgreSQL binaries to PATH in cc-env for tarballs.
mcserep Apr 22, 2021
2a2a3b2
Conditional compilation of plugins (#527)
intjftw Apr 22, 2021
ea9298f
Upgrade libthrift java library from 0.12.0 to 0.13.0
zomen2 Apr 19, 2021
e8402da
Made the codecompass-build.sh script unexecutable by default, so
filbeofITK Feb 5, 2021
1bc506c
Google Analytics event tracking (#526)
intjftw May 8, 2021
e66fc71
Merge pull request #531 from zomen2/thrift_java_up_to_0_13_0
mcserep May 8, 2021
2e761b6
Merge pull request #511 from filbeofITK/safer_docker_script
mcserep May 8, 2021
cd7d319
Tarball CI: updated outdated Boost download URL
mcserep May 9, 2021
d27a737
Remove mentions and guides for Ubuntu 16.04 "Xenial Xerus"
whisperity Apr 5, 2021
b5c5bcc
Merge pull request #525 from whisperity/deprecate-ub1604
mcserep May 10, 2021
8c8b124
Only the desired sql engine is installed into the container. (#524)
filbeofITK May 17, 2021
0d4764a
LDAP authentication (#529)
intjftw May 21, 2021
70aac53
Fix runtime docker file
mcserep May 22, 2021
a4b4630
Disable git blame menu when blame is not available. (#536)
intjftw Jul 13, 2021
913c0b8
Fix CC_DATABASE variable to be copied between docker build stages.
intjftw Jul 28, 2021
442d306
Merge pull request #537 from mcserep/fix_docker_image
intjftw Jul 28, 2021
793d094
Fix for git blame issue with submodules
Fardas Aug 5, 2021
ef32ce7
Fixing tarball creation to contain LDAP authentication (#539)
intjftw Aug 16, 2021
1dac6e3
Replacing constant usage of cppservice in the webgui where the curren…
intjftw Oct 14, 2021
710bbb6
Fixing function parameter according to change request.
intjftw Oct 20, 2021
381d34b
Merge pull request #540 from mcserep/language_gui_fix
mcserep Oct 20, 2021
cb80975
Update build2 version to 0.14.0 (required to build ODB).
mcserep Oct 20, 2021
4658464
Reduce INFO level log output of metricsparser and searchparser.
mcserep Oct 20, 2021
43ead62
Merge pull request #541 from mcserep/ci_build2-14
intjftw Oct 21, 2021
0eadb1e
Tarball (OpenSUSE 42.1): disable SSL certificate check (distribution'…
mcserep Oct 22, 2021
069937f
Tarball: use GCC 9.3.0 for OpenSUSE Leap 15
mcserep Oct 22, 2021
6a93d7a
Tarball: update m4 version to 1.4.19
mcserep Oct 22, 2021
e93f5dd
Updating selection in URL on every click on a word.
intjftw Nov 20, 2021
a0f7c74
Merge pull request #542 from mcserep/shrink_output
mcserep Nov 21, 2021
112c0ee
Process repositories in reversed order by path length in gitservice.
mcserep Dec 15, 2021
98bca3b
Merge pull request #538 from Fardas/master
mcserep Jan 4, 2022
f11ee2f
Remove default Postgresql version for Ubuntu 18 in GitHub Actions to …
mcserep Jan 4, 2022
2a7235a
Merge pull request #547 from mcserep/update_permalink
mcserep Jan 4, 2022
95b5277
Merge pull request #551 from Ericsson/ci2
intjftw Jan 4, 2022
4c0cf16
Use semantic version requirements for npm dependencies (#546)
Wrathan Jan 4, 2022
3b914aa
Updating credits for Flash version. Updating marked package according…
intjftw Jan 20, 2022
384d3cc
Update credits for Flash version.
mcserep Jan 20, 2022
00e5ab7
Updated marked package use for version 4.x.
mcserep Jan 20, 2022
7efc5c8
Add doxygen to build dependencies. (Required to generate user guide d…
mcserep Jan 20, 2022
d2fc74e
Fix marked and jsplumb JS reference in webgui.
mcserep Jan 20, 2022
adeaca4
Updating docker image building in CI (#553)
intjftw Jan 22, 2022
1815a50
Handle release/* and feature/* conventional branch names in GitLab CI…
mcserep Jan 23, 2022
3722a43
Merge pull request #554 from mcserep/gitlab-conventional-branch-names
mcserep Jan 23, 2022
36b7530
YAML syntax fixes in GitLab CI script
mcserep Jan 23, 2022
8e0382e
Enable tarball building for release branches.
mcserep Jan 23, 2022
deb9c8b
Do not add branch name to local docker image tags in GitHub Actions.
mcserep Jan 23, 2022
52327cd
Move release name to Docker tag instead of image name.
mcserep Jan 24, 2022
75d3220
Filter C/C++ compile commands.
intjftw Feb 3, 2022
05f3e24
Fix according to change requests.
intjftw Feb 16, 2022
5e1c7a0
Merge pull request #556 from mcserep/filter-cpp-compile-commands
intjftw Feb 21, 2022
8a6c4c4
Download diagram as SVG (#558)
intjftw Feb 23, 2022
edf32a1
Archive artifacts before upload
andocz Mar 1, 2022
959f63f
Merge pull request #561 from andocz/archive-before-upload
intjftw Mar 4, 2022
4c9f38a
Fix Web GUI breaking with ad blockers (#560)
andocz Mar 7, 2022
0be679e
Add .vscode to gitignore
andocz Mar 7, 2022
5afd549
docs: add missing postgresql dependency and use apt everywhere
andocz Mar 7, 2022
84c1447
Merge pull request #563 from andocz/gitignore-vscode
mcserep Mar 7, 2022
d1150d6
Complementing GA functions with detecting jump to definition and dire…
intjftw Mar 7, 2022
f32a055
Merge pull request #565 from mcserep/analytics-completion
intjftw Mar 7, 2022
c9ab88b
Jump to selected node when opening git blame
andocz Mar 8, 2022
4717d23
Set fid during initialization of git blame view
andocz Mar 8, 2022
f775739
Merge pull request #567 from andocz/blame-preserve-selection
bruntib Mar 12, 2022
fde2325
Remove postresql from deps.md
andocz Mar 13, 2022
29028b6
Move postgresql installation command into code block
andocz Mar 13, 2022
83a6a9a
Merge pull request #564 from andocz/doc-postgresql
bruntib Mar 15, 2022
fd15caa
fix(build): (NFC) Fix some compiler warnings emitted when compiling w…
whisperity Apr 4, 2022
931b868
Merge pull request #574 from whisperity/fix/clang13-build
mcserep Apr 4, 2022
d5cad98
Thrift mirror at SOTE gone, replacing it in GitLab CI.
mcserep Apr 4, 2022
b531ac9
CI: download Thrift from Apache website, as GitHub source does not co…
mcserep Apr 5, 2022
7deff40
fix: (NFC) Remove stale self-referential `#include`
whisperity Apr 13, 2022
d7ec495
Merge pull request #575 from whisperity/fix-self-recursive-include
intjftw Apr 14, 2022
6699d9f
Modified dockerfiles to honor local architecture when it's not amd64 …
May 9, 2022
ade474e
Merge pull request #578 from baro77/platformIndependentDockerfiles
mcserep May 28, 2022
648d904
Upgrading to build2 0.15.0.
intjftw Aug 30, 2022
38f6012
Merge pull request #581 from intjftw/odb-install-fix
intjftw Sep 1, 2022
270d508
GitLab CI: add gzip to the direct dependencies, as on OpenSUSE 15 it …
mcserep Oct 21, 2022
1e8f21e
GitLab CI: only download CMake if not present already
mcserep Oct 22, 2022
5350559
GitLab CI: making SUSE 15 tarball creating job manual
mcserep Oct 22, 2022
258e329
GitLab CI: temporarily disable SUSE 15 jobs. Include release/feature …
mcserep Oct 23, 2022
1eb5971
Making util a shared library instead of static to reduce the number o…
intjftw Jan 11, 2023
b488530
Merge pull request #589 from intjftw/db-connections
mcserep Jan 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
474 changes: 474 additions & 0 deletions .github/workflows/ci.yml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

nbproject/
.idea/
.vscode/
*.swp
build/
build_*/
17 changes: 17 additions & 0 deletions .gitlab/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
How to use
==========

Configure environment
---------------------
Source the `cc-env.sh` file.

Now the important binaries are available on the `PATH` environment variable:
`CodeCompass_parser`, `CodeCompass_webserver`, `CodeCompass_logger`, `ccdb-tool`.


Start a database
----------------
The tarball contains a CodeCompass instance linked against PostgreSQL, therefore two options are available.
- Use the PostgreSQL database server on your machine.
- The extracted tarball contains a PostgreSQL installation in the `runtime-deps/postgresql-install/bin` folder.
Use the `initdb` and `postgres` binaries to create and start a new PostgreSQL database cluster.
67 changes: 67 additions & 0 deletions .gitlab/build-codecompass.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
#!/bin/bash
set -x
set -e

#####################
# Build CodeCompass #
#####################

export PATH=$DEPS_INSTALL_BUILD_DIR/gcc-install/bin\
:$DEPS_INSTALL_BUILD_DIR/cmake-install/bin\
:$DEPS_INSTALL_RUNTIME_DIR/libmagic-install/bin\
:$DEPS_INSTALL_RUNTIME_DIR/odb-install/bin\
:$DEPS_INSTALL_RUNTIME_DIR/thrift-install/bin\
:$DEPS_INSTALL_RUNTIME_DIR/jdk-install/bin\
:$DEPS_INSTALL_RUNTIME_DIR/python-install/bin\
:$DEPS_INSTALL_RUNTIME_DIR/node-install/bin\
:$PATH

export CPLUS_INCLUDE_PATH=$DEPS_INSTALL_BUILD_DIR/gtest-install/include\
:$DEPS_INSTALL_RUNTIME_DIR/libgit2-install/include\
:$DEPS_INSTALL_RUNTIME_DIR/libmagic-install/include\
:$DEPS_INSTALL_RUNTIME_DIR/graphviz-install/include\
:$DEPS_INSTALL_RUNTIME_DIR/boost-install/include\
:$DEPS_INSTALL_RUNTIME_DIR/openssl-install/include

export C_INCLUDE_PATH=$DEPS_INSTALL_BUILD_DIR/gtest-install/include\
:$DEPS_INSTALL_RUNTIME_DIR/libgit2-install/include\
:$DEPS_INSTALL_RUNTIME_DIR/libmagic-install/include\
:$DEPS_INSTALL_RUNTIME_DIR/graphviz-install/include\
:$DEPS_INSTALL_RUNTIME_DIR/boost-install/include\
:$DEPS_INSTALL_RUNTIME_DIR/openssl-install/include

export LIBRARY_PATH=$DEPS_INSTALL_RUNTIME_DIR/graphviz-install/lib\
:$DEPS_INSTALL_RUNTIME_DIR/libmagic-install/lib\
:$DEPS_INSTALL_RUNTIME_DIR/libgit2-install/lib\
:$DEPS_INSTALL_RUNTIME_DIR/libgit2-install/lib64\
:$DEPS_INSTALL_RUNTIME_DIR/openssl-install/lib
# Note: libgit2-install/lib required on Ubuntu; libgit2-install/lib64 on SUSE

export LDFLAGS="-Wl,-rpath-link,$DEPS_INSTALL_RUNTIME_DIR/openssl-install/lib "\
"-Wl,-rpath-link,$DEPS_INSTALL_RUNTIME_DIR/postgresql-install/lib"

export LD_LIBRARY_PATH=$DEPS_INSTALL_RUNTIME_DIR/odb-install/lib\
:$LD_LIBRARY_PATH

export CMAKE_PREFIX_PATH=$DEPS_INSTALL_RUNTIME_DIR/libgit2-install\
:$DEPS_INSTALL_RUNTIME_DIR/odb-install\
:$DEPS_INSTALL_RUNTIME_DIR/thrift-install\
:$DEPS_INSTALL_RUNTIME_DIR/boost-install\
:$DEPS_INSTALL_RUNTIME_DIR/llvm-install\
:$DEPS_INSTALL_RUNTIME_DIR/openldap-install

export GTEST_ROOT=$DEPS_INSTALL_BUILD_DIR/gtest-install

export CXX=$DEPS_INSTALL_BUILD_DIR/gcc-install/bin/g++
export CC=$DEPS_INSTALL_BUILD_DIR/gcc-install/bin/gcc

mkdir $CC_BUILD_DIR
cd $CC_BUILD_DIR
cmake $CC_SRC_DIR \
-DCMAKE_INSTALL_PREFIX=$CC_INSTALL_DIR \
-DDATABASE=pgsql \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DWITH_AUTH="plain;ldap" \
-DLLVM_DIR=$DEPS_INSTALL_RUNTIME_DIR/llvm/lib/cmake/llvm/ \
-DClang_DIR=$DEPS_INSTALL_RUNTIME_DIR/llvm/lib/cmake/clang/
make install --quiet --jobs $(nproc)
Loading