Skip to content

Update branch #3

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

Merged
merged 60 commits into from
Nov 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
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
0ee367f
Handle symlinks in python parser.
rmfcnb May 16, 2021
e4ce9b6
Tarball CI: updated outdated Boost download URL
mcserep May 9, 2021
0d4764a
LDAP authentication (#529)
intjftw May 21, 2021
70aac53
Fix runtime docker file
mcserep May 22, 2021
84ca41e
Merge branch 'master' into pythonplugin
intjftw Jul 6, 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
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
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
f69520b
Merge branch 'master' into pythonplugin
mcserep Nov 3, 2021
8ce9002
Merge branch 'pythonplugin-symlink' of https://github.com/rmfcnb/Code…
mcserep Nov 3, 2021
a550b0e
Merge branch 'rmfcnb-pythonplugin-symlink' into pythonplugin
mcserep Nov 3, 2021
9b84d9b
Tarball CI: per branch caching of dependencies
mcserep Nov 21, 2021
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
355 changes: 327 additions & 28 deletions .github/workflows/ci.yml

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion .gitlab/build-codecompass.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ export CMAKE_PREFIX_PATH=$DEPS_INSTALL_RUNTIME_DIR/libgit2-install\
:$DEPS_INSTALL_RUNTIME_DIR/thrift-install\
:$DEPS_INSTALL_RUNTIME_DIR/boost-install\
:$DEPS_INSTALL_RUNTIME_DIR/llvm-install\
:$DEPS_INSTALL_RUNTIME_DIR/python-install
:$DEPS_INSTALL_RUNTIME_DIR/python-install\
:$DEPS_INSTALL_RUNTIME_DIR/openldap-install

export GTEST_ROOT=$DEPS_INSTALL_BUILD_DIR/gtest-install

Expand All @@ -62,6 +63,7 @@ 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)
32 changes: 24 additions & 8 deletions .gitlab/build-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ export PATH=$DEPS_INSTALL_BUILD_DIR/cmake-install/bin:$PATH
######

cd $PACKAGES_DIR
wget --no-verbose --no-clobber https://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.gz
tar -xf m4-1.4.18.tar.gz
cd m4-1.4.18
wget --no-verbose --no-clobber https://ftp.gnu.org/gnu/m4/m4-1.4.19.tar.gz
tar -xf m4-1.4.19.tar.gz
cd m4-1.4.19
./configure --quiet --prefix=$DEPS_INSTALL_BUILD_DIR/m4-install
make install --quiet --jobs $(nproc)
rm -rf $PACKAGES_DIR/m4-1.4.18.tar.gz
rm -rf $PACKAGES_DIR/m4-1.4.19.tar.gz

###########
# libtool #
Expand Down Expand Up @@ -137,8 +137,8 @@ if [ ! -f $DEPS_INSTALL_RUNTIME_DIR/odb-install/bin/odb ]; then
if [[ $ODB_VERSION == "2.5.0" ]]; then
# build2
cd $PACKAGES_DIR
wget --no-verbose --no-clobber https://download.build2.org/0.13.0/build2-install-0.13.0.sh
sh build2-install-0.13.0.sh --yes --trust yes --jobs $(nproc) $PACKAGES_DIR/build2-install
wget --no-verbose --no-clobber https://download.build2.org/0.14.0/build2-install-0.14.0.sh
sh build2-install-0.14.0.sh --yes --trust yes --jobs $(nproc) $PACKAGES_DIR/build2-install
export PATH=$PACKAGES_DIR/build2-install/bin:$PATH

# odb, libodb
Expand All @@ -160,7 +160,7 @@ if [ ! -f $DEPS_INSTALL_RUNTIME_DIR/odb-install/bin/odb ]; then
bpkg build libodb-pgsql --yes --quiet --jobs $(nproc)
bpkg install --all --recursive --quiet --jobs $(nproc)

rm -f $PACKAGES_DIR/build2-toolchain-0.13.0.tar.xz
rm -f $PACKAGES_DIR/build2-toolchain-0.14.0.tar.xz
elif [[ $ODB_VERSION == "2.4.0" ]]; then
# odb
cd $PACKAGES_DIR
Expand Down Expand Up @@ -310,7 +310,7 @@ rm -f $PACKAGES_DIR/ctags-p5.9.20201129.0.tar.gz

if [ ! -f $DEPS_INSTALL_RUNTIME_DIR/boost-install/lib/libboost_program_options.so ]; then
cd $PACKAGES_DIR
wget --no-verbose --no-clobber https://dl.bintray.com/boostorg/release/1.74.0/source/boost_1_74_0.tar.gz
wget --no-verbose --no-clobber https://boostorg.jfrog.io/artifactory/main/release/1.74.0/source/boost_1_74_0.tar.gz
tar -xf boost_1_74_0.tar.gz
cd boost_1_74_0

Expand Down Expand Up @@ -386,6 +386,22 @@ cd $DEPS_INSTALL_RUNTIME_DIR
mv node-v14.15.0-linux-x64 node-install
export PATH=$DEPS_INSTALL_RUNTIME_DIR/node-install/bin:$PATH

############
# OpenLDAP #
############

cd $PACKAGES_DIR
wget --no-verbose --no-clobber http://mirror.eu.oneandone.net/software/openldap/openldap-release/openldap-2.5.6.tgz
tar -xf openldap-2.5.6.tgz

cd openldap-2.5.6
./configure --quiet --prefix=$DEPS_INSTALL_RUNTIME_DIR/openldap-install
make depend
make
make install

rm -f $PACKAGES_DIR/openldap-2.5.6.tgz

#######
# pip #
#######
Expand Down
1 change: 1 addition & 0 deletions .gitlab/cc-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export LD_LIBRARY_PATH=$DEPS_INSTALL_DIR/libgit2-install/lib64\
:$DEPS_INSTALL_DIR/libtool-install/lib\
:$DEPS_INSTALL_DIR/postgresql-install/lib\
:$DEPS_INSTALL_DIR/python-install/lib\
:$DEPS_INSTALL_DIR/openldap-install/lib\
:$LD_LIBRARY_PATH
# Note: libgit2-install/lib required on Ubuntu; libgit2-install/lib64 on SUSE

Expand Down
27 changes: 21 additions & 6 deletions .gitlab/ci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
workflow:
rules:
- if: '$CI_PIPELINE_SOURCE == "trigger"'
when: always
- if: '$CI_PIPELINE_SOURCE == "web"'
when: always
- when: never

stages:
- prepare
- package
Expand All @@ -14,7 +22,6 @@ variables:

.tarball:
stage: package
when: manual
allow_failure: false
timeout: 12h
tags: ["long-running"]
Expand Down Expand Up @@ -55,9 +62,9 @@ tarball suse-15:
extends: .tarball
image: opensuse/leap:15
cache:
key: "leap"
key: "leap-$CI_COMMIT_REF_SLUG"
variables:
GCC_VERSION: 7.5.0
GCC_VERSION: 9.3.0
ODB_VERSION: 2.5.0
before_script:
- zypper refresh
Expand All @@ -67,6 +74,8 @@ tarball suse-15:
# build tools for CodeCompass
- zypper install -y -t pattern devel_basis
- zypper install -y binutils gcc-c++ gmp-devel
# build tools for OpenLDAP
- zypper install -y groff
# build tools for ccdb-tools
- zypper install -y libffi-devel
# show GLIBC verison
Expand All @@ -76,7 +85,7 @@ tarball suse-42.1:
extends: .tarball
image: opensuse/archive:42.1
cache:
key: "malachite"
key: "malachite-$CI_COMMIT_REF_SLUG"
variables:
GCC_VERSION: 5.5.0
ODB_VERSION: 2.4.0
Expand All @@ -88,16 +97,21 @@ tarball suse-42.1:
# build tools for CodeCompass
- zypper install -y -t pattern devel_basis
- zypper install -y binutils gcc-c++ gmp-devel
# build tools for OpenLDAP
- zypper install -y groff
# build tools for ccdb-tools
- zypper install -y libffi-devel
# disable SSL certificate check (distribution's cacert is outdated)
- echo "check_certificate = off" >> /etc/wgetrc
- echo insecure >> ~/.curlrc
# show GLIBC verison
- *show-glibc-version

tarball ubuntu-16.04:
extends: .tarball
image: ubuntu:16.04
cache:
key: "xenial"
key: "xenial-$CI_COMMIT_REF_SLUG"
variables:
GCC_VERSION: 5.5.0
ODB_VERSION: 2.4.0
Expand All @@ -109,6 +123,8 @@ tarball ubuntu-16.04:
- apt-get install -yqq build-essential libgmp-dev zlib1g-dev
# build tools for ctags
- apt-get install -yqq dh-autoreconf pkg-config
# build tools for OpenLDAP
- apt install -yqq groff-base
# build tools for ccdb-tools
- apt-get install -yqq libffi-dev
# show GLIBC verison
Expand All @@ -117,7 +133,6 @@ tarball ubuntu-16.04:
.upload:
stage: deploy
image: ubuntu:20.04
when: manual
allow_failure: false
variables:
FILENAME: codecompass-$CI_COMMIT_BRANCH.tar.gz
Expand Down
Loading