diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 8016eb576..07e77023c 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -3,10 +3,18 @@ FROM mcr.microsoft.com/vscode/devcontainers/base:debian RUN sudo apt-get update && export DEBIAN_FRONTEND=noninteractive \ && sudo apt-get install -y \ cmake-curses-gui \ - clangd \ git \ libeigen3-dev \ libopenmpi-dev \ r-cran-rcpp \ - r-cran-rinside + r-cran-rinside \ + gdb +RUN git clone https://github.com/doctest/doctest.git /doctest \ + && cd /doctest \ + && mkdir build \ + && cd build \ + && cmake .. \ + && make install \ + && cd / \ + && rm -rf /doctest diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 46f15eb8b..c861d40a3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -24,7 +24,7 @@ stages: # List of stages for jobs, and their order of execution - test variables: - GIT_SUBMODULE_STRATEGY: recursive +# GIT_SUBMODULE_STRATEGY: recursive SOURCE_ARCHIVE_NAME: 'poet_${CI_COMMIT_TAG}_sources.tar.gz' CHANGELOG_FILE: 'commit_changelog.md' diff --git a/.gitmodules b/.gitmodules index 645e48d00..26a3acc7f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -2,12 +2,6 @@ path = ext/tug url = ../tug.git -[submodule "ext/doctest"] - path = ext/doctest - url = https://github.com/doctest/doctest.git -[submodule "ext/phreeqc"] - path = ext/phreeqc - url = git@git.gfz-potsdam.de:naaice/phreeqcpoet.git [submodule "ext/iphreeqc"] path = ext/iphreeqc - url = git@git.gfz-potsdam.de:naaice/iphreeqc.git + url = ../iphreeqc.git diff --git a/CMakeLists.txt b/CMakeLists.txt index a57f557df..1873d6ff5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,7 +37,6 @@ add_subdirectory(ext/iphreeqc EXCLUDE_FROM_ALL) option(POET_ENABLE_TESTING "Build test suite for POET" OFF) if (POET_ENABLE_TESTING) - add_subdirectory(ext/doctest EXCLUDE_FROM_ALL) add_subdirectory(test) endif() diff --git a/ext/doctest b/ext/doctest deleted file mode 160000 index ae7a13539..000000000 --- a/ext/doctest +++ /dev/null @@ -1 +0,0 @@ -Subproject commit ae7a13539fb71f270b87eb2e874fbac80bc8dda2 diff --git a/ext/tug b/ext/tug index 3ffa0ef62..b104fdcf5 160000 --- a/ext/tug +++ b/ext/tug @@ -1 +1 @@ -Subproject commit 3ffa0ef6242d467a269be83751c857cb24ae532e +Subproject commit b104fdcf5238a8a2948b4e835b2d99b64758bb2a diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 2f2842b6d..8bc494158 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -2,8 +2,10 @@ file(GLOB test_SRC CONFIGURE_DEPENDS "*.cpp" "*.c") +find_package(doctest REQUIRED) + add_executable(testPOET ${test_SRC}) -target_link_libraries(testPOET doctest POETLib) +target_link_libraries(testPOET doctest::doctest POETLib) target_include_directories(testPOET PRIVATE "${PROJECT_SOURCE_DIR}/src") get_filename_component(TEST_RInsideSourceFile "RInsidePOET_funcs.R" REALPATH) diff --git a/util/ci.Dockerfile b/util/ci.Dockerfile deleted file mode 100644 index e795879a5..000000000 --- a/util/ci.Dockerfile +++ /dev/null @@ -1,11 +0,0 @@ -FROM debian - -RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ - && apt-get install -y \ - cmake \ - git \ - libeigen3-dev \ - libopenmpi-dev \ - r-cran-rcpp \ - r-cran-rinside \ - libssl-dev \ No newline at end of file