Skip to content
Snippets Groups Projects
Commit b24b2fe5 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

[i490d] CI: as Hugo does not support symlinks, build figure in old location ()

Merging branch 'i490d'  into 'main'.

See merge request !1383
parents a3df3b6f 8d0803df
No related branches found
No related tags found
1 merge request!1383CI: as Hugo does not support symlinks, build figure in old location
Pipeline #90284 passed
...@@ -35,3 +35,4 @@ cover/ ...@@ -35,3 +35,4 @@ cover/
hugo/public hugo/public
hugo/resources hugo/resources
hugo/static/img/auto
\ No newline at end of file
...@@ -6,7 +6,7 @@ native_Debian_clang: ...@@ -6,7 +6,7 @@ native_Debian_clang:
- Debian - Debian
before_script: &debian_clang before_script: &debian_clang
- pwd - pwd
- export CC=clang; export CXX=clang++ - export CC=gcc; export CXX=g++
- export QCMAKE=/home/build/Qt/6.2.3/gcc_64/lib/cmake - export QCMAKE=/home/build/Qt/6.2.3/gcc_64/lib/cmake
- export PYTHONPATH=$CI_PROJECT_DIR/build/lib - export PYTHONPATH=$CI_PROJECT_DIR/build/lib
- export MPLBACKEND=Agg - export MPLBACKEND=Agg
...@@ -16,7 +16,7 @@ native_Debian_clang: ...@@ -16,7 +16,7 @@ native_Debian_clang:
script: &native_scr script: &native_scr
- mkdir build - mkdir build
- cd build - cd build
- time cmake .. -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DBA_PY_PACKAGE=ON -DCMAKE_PREFIX_PATH=$QCMAKE #-DWERROR=ON - time cmake .. -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DBA_PY_PACKAGE=ON -DCMAKE_PREFIX_PATH=$QCMAKE -DZERO_TOLERANCE=ON
- time make -j32 - time make -j32
- time xvfb-run -a ctest -j16 --output-on-failure - time xvfb-run -a ctest -j16 --output-on-failure
- time make package_source - time make package_source
......
...@@ -17,7 +17,8 @@ set(${library_name}_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR} PARENT_SCOPE) ...@@ -17,7 +17,8 @@ set(${library_name}_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR} PARENT_SCOPE)
set(${library_name}_LIBRARY ${library_name} PARENT_SCOPE) set(${library_name}_LIBRARY ${library_name} PARENT_SCOPE)
if(NOT WIN32) if(NOT WIN32)
target_compile_options(${library_name} PRIVATE -Wno-deprecated-declarations) target_compile_options(${library_name}
PRIVATE -Wno-deprecated-declarations -Wno-implicit-fallthrough)
endif() endif()
target_link_libraries(${library_name} target_link_libraries(${library_name}
......
...@@ -18,7 +18,7 @@ file(GLOB source_files ...@@ -18,7 +18,7 @@ file(GLOB source_files
add_definitions(-DWARNINGMSG) add_definitions(-DWARNINGMSG)
string(APPEND CMAKE_CXX_FLAGS " -DMATH_NO_PLUGIN_MANAGER -DHAS_MINUIT2 -DR__HAS_MATHMORE") string(APPEND CMAKE_CXX_FLAGS " -DMATH_NO_PLUGIN_MANAGER -DHAS_MINUIT2 -DR__HAS_MATHMORE")
if(NOT WIN32) if(NOT WIN32)
string(APPEND CMAKE_CXX_FLAGS " -Wno-deprecated-declarations") string(APPEND CMAKE_CXX_FLAGS " -Wno-deprecated-declarations -Wno-unused-but-set-variable")
# suppresses a warning in # suppresses a warning in
# Fit/3rdparty/RootMinimizers/mathcore/Math/GSLRngROOTWrapper.h # Fit/3rdparty/RootMinimizers/mathcore/Math/GSLRngROOTWrapper.h
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang"
......
...@@ -95,7 +95,6 @@ public: ...@@ -95,7 +95,6 @@ public:
private: private:
SelectionProperty<FootprintItemCatalog> m_footprint; SelectionProperty<FootprintItemCatalog> m_footprint;
bool m_expandFootprint = true; bool m_expandFootprint = true;
double m_wavelength = 0;
}; };
class GISASBeamItem : public BeamItem { class GISASBeamItem : public BeamItem {
......
...@@ -769,8 +769,8 @@ const ICoordSystem* OffspecInstrumentItem::createCoordSystem() const ...@@ -769,8 +769,8 @@ const ICoordSystem* OffspecInstrumentItem::createCoordSystem() const
new FixedBinAxis("alpha", m_alphaAxis.nbins(), m_alphaAxis.min() * Units::deg, new FixedBinAxis("alpha", m_alphaAxis.nbins(), m_alphaAxis.min() * Units::deg,
m_alphaAxis.max() * Units::deg); m_alphaAxis.max() * Units::deg);
const auto* det = auto d = detectorItem()->createDetector();
dynamic_cast<const SphericalDetector*>(detectorItem()->createDetector().get()); const auto* det = dynamic_cast<const SphericalDetector*>(d.get());
ASSERT(det); ASSERT(det);
return det->offspecCoords(alphaAxis); return det->offspecCoords(alphaAxis);
} }
......
...@@ -4,15 +4,15 @@ ...@@ -4,15 +4,15 @@
file(MAKE_DIRECTORY ${TEST_OUTPUT_DIR_PY_PERSIST}) file(MAKE_DIRECTORY ${TEST_OUTPUT_DIR_PY_PERSIST})
set(FIG_DIR ${CMAKE_BINARY_DIR}/img) set(FIG_DIR ${CMAKE_SOURCE_DIR}/hugo/static/img/auto)
add_custom_target(figures) add_custom_target(figures)
add_custom_target(manualtest) add_custom_target(manualtest)
file(MAKE_DIRECTORY ${FIG_DIR}/auto) file(MAKE_DIRECTORY ${FIG_DIR})
foreach(subdir scatter2d ff fq specular varia) foreach(subdir scatter2d ff fq specular varia)
file(MAKE_DIRECTORY ${TEST_OUTPUT_DIR_PY_PERSIST}/${subdir}) file(MAKE_DIRECTORY ${TEST_OUTPUT_DIR_PY_PERSIST}/${subdir})
file(MAKE_DIRECTORY ${FIG_DIR}/auto/${subdir}) file(MAKE_DIRECTORY ${FIG_DIR}/${subdir})
endforeach() endforeach()
#################################################################################################### ####################################################################################################
...@@ -39,7 +39,7 @@ function(run_example example) ...@@ -39,7 +39,7 @@ function(run_example example)
BA_EXAMPLE_DATA_DIR=${EXAMPLES_DIR}/data BA_EXAMPLE_DATA_DIR=${EXAMPLES_DIR}/data
PYTHONPATH=${CMAKE_BINARY_DIR}/lib PYTHONPATH=${CMAKE_BINARY_DIR}/lib
${Python3_EXECUTABLE} ${EXAMPLE_SCRIPT} ${Python3_EXECUTABLE} ${EXAMPLE_SCRIPT}
figfile=${FIG_DIR}/auto/${EXAMPLE_SUBDIR}/${EXAMPLE_NAME}.png) figfile=${FIG_DIR}/${EXAMPLE_SUBDIR}/${EXAMPLE_NAME}.png)
add_dependencies(figures ${TARGET_NAME}) add_dependencies(figures ${TARGET_NAME})
endfunction() endfunction()
...@@ -90,7 +90,7 @@ function(test_equality example reference tolerance nsim) ...@@ -90,7 +90,7 @@ function(test_equality example reference tolerance nsim)
PYTHONPATH=${CMAKE_BINARY_DIR}/lib PYTHONPATH=${CMAKE_BINARY_DIR}/lib
BA_EXAMPLE_DATA_DIR=${EXAMPLES_DIR}/data BA_EXAMPLE_DATA_DIR=${EXAMPLES_DIR}/data
${Python3_EXECUTABLE} ${EXAMPLE_SCRIPT} ${Python3_EXECUTABLE} ${EXAMPLE_SCRIPT}
figfile=${FIG_DIR}/auto/${EXAMPLE_SUBDIR}/${EXAMPLE_NAME}.png) figfile=${FIG_DIR}/${EXAMPLE_SUBDIR}/${EXAMPLE_NAME}.png)
add_dependencies(figures ${TARGET_NAME}) add_dependencies(figures ${TARGET_NAME})
endfunction() endfunction()
......
../../../build/img
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment