Skip to content

Commit

Permalink
Add Gitlab CI pipeline to CoDiPack.
Browse files Browse the repository at this point in the history
Add jobs for CoDiPack tests as well as OpDiLib and MeDiPack tests.

Merge pull request #49 from feature/gitlab_ci.
Reviewed-by: Max Sagebaum <[email protected]>
  • Loading branch information
jblueh committed Feb 7, 2024
2 parents 9ca6c38 + 3f7b343 commit 5a2a78a
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
49 changes: 49 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
default:
image: ubuntu:22.04
timeout: 2h
tags:
- docker

codi-general:
script:
- apt update && apt install -y build-essential binutils
- cd tests/general
- make all

codi-events:
script:
- apt update && apt install -y build-essential binutils
- cd tests/events
- make all

codi-functional:
script:
- apt update && apt install -y build-essential binutils
- cd tests/functional
- make all

codi-examples:
script:
- apt update && apt install -y build-essential binutils
- make examples

opdi:
script:
- apt update && apt install -y build-essential binutils git
- git clone --depth 1 --branch develop https://github.com/SciCompKL/OpDiLib.git
- export CODI_DIR=$(pwd)/include
- cd OpDiLib
- export OPDI_DIR=$(pwd)/include
- cd tests
- export CXX=g++
- make all

medi:
script:
- apt update && apt install -y build-essential binutils git openmpi-bin libopenmpi-dev
- git clone --depth 1 --branch develop https://github.com/SciCompKL/MeDiPack.git
- export CODI_DIR=$(pwd)
- cd MeDiPack/tests
- export OMPI_ALLOW_RUN_AS_ROOT=1
- export OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1
- make all
2 changes: 1 addition & 1 deletion tests/functional/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ $(BUILD_DIR)/%.exe : %.cpp $(BUILD_DIR)/compiler_flags
@mkdir -p $(<D)/$(TEST_NAME)_run
cd $(<D)/$(TEST_NAME)_run; ../$(<F) $(SELECTED_TESTS)
@echo "Comparing"
@scripts/compare.sh $(TEST_NAME) $(filter ALL $(TEST_NAME)/%, $(SELECTED_TESTS))
@bash scripts/compare.sh $(TEST_NAME) $(filter ALL $(TEST_NAME)/%, $(SELECTED_TESTS))

functionTests: $(SELECTED_PROBLEMS)

Expand Down

0 comments on commit 5a2a78a

Please sign in to comment.