Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-cpplib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-cpplib
Commits
e051ce3e
Commit
e051ce3e
authored
6 months ago
by
Joscha Schmiedt
Browse files
Options
Downloads
Patches
Plain Diff
Move building of dependencies and venv activation to Dockerfile
parent
baa63421
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!61
Release 0.3.0
,
!57
Fix deprecations + updates
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.docker/Dockerfile
+9
-2
9 additions, 2 deletions
.docker/Dockerfile
.gitlab-ci.yml
+2
-15
2 additions, 15 deletions
.gitlab-ci.yml
Makefile
+1
-1
1 addition, 1 deletion
Makefile
with
12 additions
and
18 deletions
.docker/Dockerfile
+
9
−
2
View file @
e051ce3e
...
...
@@ -6,9 +6,9 @@ RUN apt-get install -y lcov
RUN
apt-get
install
-y
doxygen graphviz
RUN
apt-get
install
-y
clang-format clang-tidy
RUN
apt-get
install
-y
python3-pip python3-venv
RUN
apt-get
install
-y
git
RUN
apt-get
install
-y
git
RUN
apt-get
install
-y
curl zip unzip
tar
RUN
apt-get
install
-y
perl
RUN
apt-get
install
-y
perl
pkg-config
RUN
apt-get
install
-y
openjdk-17-jdk-headless
...
...
@@ -21,8 +21,15 @@ COPY doc/requirements.txt doc-requirements.txt
RUN
./venv/bin/pip
install
-r
doc-requirements.txt
COPY
requirements.txt build-requirements.txt
RUN
./venv/bin/pip
install
-r
build-requirements.txt
RUN
./venv/bin/conan profile detect
# add venv with conan to .bashrc
RUN
echo
"source /venv/bin/activate"
>>
/root/.bashrc
COPY
. /libcaosdb/
WORKDIR
/libcaosdb
RUN
git rev-parse HEAD
>
libcaosdb_commit
RUN
rm
-rf
.git
# build dependencies
RUN
/venv/bin/conan
install
/libcaosdb
--build
=
missing
-s
build_type
=
Debug
RUN
/venv/bin/conan
install
/libcaosdb
--build
=
missing
-s
build_type
=
Release
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
2
−
15
View file @
e051ce3e
...
...
@@ -86,8 +86,7 @@ code_style:
build_vcpkg
:
tags
:
[
docker
]
stage
:
test
script
:
-
apt update && apt install -y pkg-config
script
:
-
cd vcpkg && git fetch origin 5d3798ac7388ca66c169773e46103b14077b76a4 && cd ..
-
make vcpkg-build-release
allow_failure
:
true
...
...
@@ -96,19 +95,8 @@ build_vcpkg:
test
:
tags
:
[
docker
]
stage
:
test
script
:
-
conan profile detect
script
:
-
make test
# - mkdir build
# - cd build
# - VERSION="$(conan inspect --raw version ..)"
# - conan install -s "compiler.libcxx=libstdc++11" --build=missing -o build_acm=True . #.. "caosdb/$VERSION@_/_"
# - conan build -s "compiler.libcxx=libstdc++11" . --s build_type=Debug
# - cd build/Debug
# - cmake --build . -j
# - cmake --build . -j --target unit_test_coverage
# - cmake --build . -j --target cxxcaosdbcli
# - cmake --build . -j --target ccaosdbcli # Disabled until it compiles again.
trigger_prepare
:
# Calculate the branch name
...
...
@@ -237,7 +225,6 @@ trigger_inttest:
tags
:
[
cached-dind
]
stage
:
deploy
script
:
-
conan profile detect
-
make doc
-
cp -r build/Release/doc/sphinx_out ./public
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
1
−
1
View file @
e051ce3e
...
...
@@ -22,7 +22,7 @@
# This Makefile is a wrapper for several other scripts.
CLANG_FORMAT
?=
clang-format
-11
CLANG_FORMAT
?=
clang-format
CONAN_SETTINGS
=
"compiler.libcxx=libstdc++11"
# OS specific handling, with code by Ken Jackson and oHo,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment