Skip to content
Snippets Groups Projects
Verified Commit eb6d2e85 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

WIP: pipeline

parent ba6286a2
No related branches found
No related tags found
No related merge requests found
Pipeline #8233 failed
ARG CI_REGISTRY_IMAGE
FROM $CI_REGISTRY_IMAGE
# TODO install caosdb-cpplib
# 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/
......@@ -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 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()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment