Skip to content

Commit

Permalink
build(CI): add codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
subotic committed Mar 31, 2024
1 parent 764ce6c commit ba7420a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()

#
Expand Down
14 changes: 14 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down

0 comments on commit ba7420a

Please sign in to comment.