From ba7420aaf6b7456364b0d2307a349b30bb16f7b9 Mon Sep 17 00:00:00 2001 From: Ivan Subotic <400790+subotic@users.noreply.github.com> Date: Sun, 31 Mar 2024 19:38:51 +0200 Subject: [PATCH] build(CI): add codecov --- CMakeLists.txt | 2 +- justfile | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 45717cba..222cdea6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -136,7 +136,7 @@ add_library(build_config INTERFACE) # Statically compile the C++ standard library into the executable if (CMAKE_CXX_COMPILER_ID MATCHES "GNU") message(STATUS "Compiling with GCC. Statically linking libstdc++.") - target_compile_options(build_config INTERFACE -static-libstdc++) + target_link_options(build_config INTERFACE -static-libstdc++) endif () # diff --git a/justfile b/justfile index 9a77873e..5eeecbb9 100644 --- a/justfile +++ b/justfile @@ -11,6 +11,20 @@ docker-run: docker run -it --rm -v /Users/subotic/_github.com/dasch-swiss/sipi:/app -v /Volumes/PhotoArchive:/scratch -w /app daschswiss/remote-sipi-env:1.0 /bin/bash +# build and publish Sipi Docker image locally +docker-build: + docker buildx build \ + --progress auto \ + --build-arg SIPI_BASE=daschswiss/sipi-base:2.23.0 \ + --build-arg UBUNTU_BASE=ubuntu:22.04 \ + --build-arg BUILD_TAG=development \ + -t daschswiss/sipi:development -t daschswiss/sipi:latest \ + --load \ + . +# run smoke tests against locally published Sipi Docker image +test-smoke: docker-build + pytest -s test/smoke + # # The following commands need to be run inside a Nix development shell #