diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 040d86b6d4c0123667e433b46208f29847fab3e2..c5d00cbb3464f9300670ef240ea39f9b3389494d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,7 @@ stages: - linting + - build + - test pre-commit: stage: linting @@ -12,3 +14,27 @@ pre-commit: - pre-commit run --all-files --verbose --color always only: - merge_requests + + +build: + stage: build + image: ubuntu:latest + before_script: + - apt-get update && apt-get install -y clang gcc g++ gfortran git make cmake + pkg-config && rm -rf /var/lib/apt/lists/* + script: + - mkdir build && cd build + - cmake .. + - make + +ctest: + stage: test + image: ubuntu:latest + before_script: + - apt-get update && apt-get install -y clang gcc g++ gfortran git make cmake + pkg-config && rm -rf /var/lib/apt/lists/* + script: + - mkdir build && cd build + - cmake .. + - make + - ctest diff --git a/src/utils/parallelism_helper.cpp b/src/utils/parallelism_helper.cpp index 772d6404c533f3bab40f22b1a6dc8f8331bd19c9..61734eab58d14b70cd9558f5c71438cb70b9b118 100644 --- a/src/utils/parallelism_helper.cpp +++ b/src/utils/parallelism_helper.cpp @@ -1,9 +1,9 @@ -#include #include #include #ifdef WITH_MPI +#include bool MPIHelper::IsUsingMPI() const { return is_using_mpi_; }