Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-cppinttest
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-cppinttest
Commits
eb6d2e85
Verified
Commit
eb6d2e85
authored
3 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
WIP: pipeline
parent
ba6286a2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#8233
failed
3 years ago
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.docker/Dockerfile
+4
-0
4 additions, 0 deletions
.docker/Dockerfile
.gitignore
+145
-0
145 additions, 0 deletions
.gitignore
.gitlab-ci.yml
+25
-2
25 additions, 2 deletions
.gitlab-ci.yml
CMakeLists.txt
+30
-0
30 additions, 0 deletions
CMakeLists.txt
with
204 additions
and
2 deletions
.docker/Dockerfile
0 → 100644
+
4
−
0
View file @
eb6d2e85
ARG
CI_REGISTRY_IMAGE
FROM
$CI_REGISTRY_IMAGE
# TODO install caosdb-cpplib
This diff is collapsed.
Click to expand it.
.gitignore
0 → 100644
+
145
−
0
View file @
eb6d2e85
# General
build/
include/libcaosdbConfig.h
.*
# CMake
CMakeLists.txt.user
CMakeCache.txt
CMakeFiles
CMakeScripts
Testing
Makefile
cmake_install.cmake
install_manifest.txt
compile_commands.json
CTestTestfile.cmake
_deps
# C
## Prerequisites
*.d
## Object files
*.o
*.ko
*.obj
*.elf
## Linker output
*.ilk
*.map
*.exp
## Precompiled Headers
*.gch
*.pch
## Libraries
*.lib
*.a
*.la
*.lo
## Shared objects (inc. Windows DLLs)
*.dll
*.so
*.so.*
*.dylib
## Executables
*.exe
*.out
*.app
*.i*86
*.x86_64
*.hex
## Debug files
*.dSYM/
*.su
*.idb
*.pdb
## Kernel Module Compile Results
*.mod*
*.cmd
.tmp_versions/
modules.order
Module.symvers
Mkfile.old
dkms.conf
# VIM
## Swap
[._]*.s[a-v][a-z]
!*.svg # comment out if you don't need vector files
[._]*.sw[a-p]
[._]s[a-rt-v][a-z]
[._]ss[a-gi-z]
[._]sw[a-p]
## Session
Session.vim
Sessionx.vim
## Temporary
.netrwhist
*~
## Auto-generated tag files
tags
## Persistent undo
[._]*.un~
# Emacs
*~
\#*\#
/.emacs.desktop
/.emacs.desktop.lock
*.elc
auto-save-list
tramp
.\#*
## Org-mode
.org-id-locations
*_archive
## flymake-mode
*_flymake.*
## eshell files
/eshell/history
/eshell/lastdir
## elpa packages
/elpa/
## reftex files
*.rel
## AUCTeX auto folder
/auto/
## cask packages
.cask/
dist/
## Flycheck
flycheck_*.el
## server auth directory
/server/
## projectiles files
.projectile
## directory configuration
.dir-locals.el
## network security
/network-security.data
# Python/Sphinx
env/
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
25
−
2
View file @
eb6d2e85
...
...
@@ -20,13 +20,15 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
variables
:
CI_REGISTRY_IMAGE
:
$CI_REGISTRY/caosdb/src/caosdb-cpplib/testenv:latest
TRIGGERED_BY_REPO
:
CPPINTTEST
TRIGGERED_BY_REF
:
'
echo
"${TRIGGERED_BY_REF:-
$CI_COMMIT_REF_NAME
}"'
TRIGGERED_BY_HASH
:
${TRIGGERED_BY_HASH:-
$CI_COMMIT_SHORT_SHA
}
TRIGGERED_BY_REF
:
$CI_COMMIT_REF_NAME
TRIGGERED_BY_HASH
:
$CI_COMMIT_SHORT_SHA
stages
:
-
setup
# Build a docker image in which tests for this repository can run
build-testenv
:
tags
:
[
cached-dind
]
image
:
docker:20.10.6
...
...
@@ -35,3 +37,24 @@ build-testenv:
needs
:
[]
script
:
-
echo "Pipeline triggered by $TRIGGERED_BY_REPO@$TRIGGERED_BY_REF ($TRIGGERED_BY_HASH)"
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
-
docker pull $CI_REGISTRY_IMAGE||
true
-
docker build
--build-arg CI_REGISTRY_IMAGE=$CI_REGISTRY_IMAGE
--file .docker/Dockerfile
--pull
--cache-from $CI_REGISTRY_IMAGE
--tag $CI_REGISTRY_IMAGE .
-
docker push $CI_REGISTRY_IMAGE
# run integration tests
test
:
tags
:
[
docker
]
stage
:
test
script
:
-
mkdir build
-
cd build
-
cmake ..
-
cmake --build .
-
ctest
This diff is collapsed.
Click to expand it.
CMakeLists.txt
0 → 100644
+
30
−
0
View file @
eb6d2e85
#
# This file is a part of the CaosDB Project.
#
# Copyright (C) 2021 Timm Fitschen <t.fitschen@indiscale.com>
# Copyright (C) 2021 IndiScale GmbH <info@indiscale.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
cmake_minimum_required
(
VERSION 3.15
)
project
(
libcaosdb_inttests
DESCRIPTION
"Integration tests for the C++ client libraries of the CaosDB project which run against the CaosDB server."
LANGUAGES CXX
)
set
(
CMAKE_CXX_STANDARD 17
)
set
(
CMAKE_CXX_STANDARD_REQUIRED ON
)
enable_testing
()
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