Skip to content
Snippets Groups Projects
Commit 7aa54c85 authored by EXT Jean-Matthieu Etancelin's avatar EXT Jean-Matthieu Etancelin
Browse files

update

parent 47a51606
No related branches found
No related tags found
No related merge requests found
Pipeline #200225 passed
...@@ -4,6 +4,8 @@ set -eux -o pipefail ...@@ -4,6 +4,8 @@ set -eux -o pipefail
ROOT_DIR="$(pwd)/hysop" ROOT_DIR="$(pwd)/hysop"
BUILD_DIR="$(pwd)/build" BUILD_DIR="$(pwd)/build"
INSTALL_DIR="$(pwd)/install" INSTALL_DIR="$(pwd)/install"
CI_DIR="$(pwd)"
mkdir -p ${CI_DIR}/logs # as artifact in gitlab-ci
# Get sources for API documentation # Get sources for API documentation
git clone --depth 1 https://gricad-gitlab.univ-grenoble-alpes.fr/particle_methods/hysop.git git clone --depth 1 https://gricad-gitlab.univ-grenoble-alpes.fr/particle_methods/hysop.git
...@@ -15,18 +17,12 @@ cp -r _static devel examples install_guide getting_started reference users_guide ...@@ -15,18 +17,12 @@ cp -r _static devel examples install_guide getting_started reference users_guide
cd hysop cd hysop
FC=mpif90 meson setup ${BUILD_DIR} --python.install-env prefix --prefix=${INSTALL_DIR} -DWITH_DOCUMENTATION=ON FC=mpif90 meson setup ${BUILD_DIR} --python.install-env prefix --prefix=${INSTALL_DIR} -DWITH_DOCUMENTATION=ON
meson compile -C ${BUILD_DIR} meson compile -C ${BUILD_DIR}
# Tweak meson builddir: move the f2hysop*so file into hysop python files. meson install -C ${BUILD_DIR} # Docs needs to find an proper installed hysop (i.e. finding f2hysop.so)
find ${BUILD_DIR} -name 'f2hysop*so' -exec cp '{}' ${BUILD_DIR}/hysop/. \; ln -s ${CI_DIR}/logs ${BUILD_DIR}/docs/logs # trik to keep logs in ci artifacts even in case of failure
# Tweak python path for nbsphinx meson compile -C ${BUILD_DIR} docs
export PYTHONPATH=${BUILD_DIR} meson compile -C ${BUILD_DIR} doctest
meson compile -C ${BUILD_DIR} docs
HYSOP_VERBOSE=false meson compile -C ${BUILD_DIR} doctest
cd - cd -
mv ${BUILD_DIR}/docs/build/html public mv ${BUILD_DIR}/docs/build/html ${CI_DIR}/public # as artifact in gitlab-ci
mkdir -p logs
find ${BUILD_DIR} -name doxygen.log -exec mv '{}' logs/. \;
find ${BUILD_DIR} -name sphinx.log -exec mv '{}' logs/. \;
rm -rf ${BUILD_DIR} ${ROOT_DIR} ${INSTALL_DIR} rm -rf ${BUILD_DIR} ${ROOT_DIR} ${INSTALL_DIR}
exit 0 exit 0
...@@ -43,7 +43,7 @@ extensions = [ ...@@ -43,7 +43,7 @@ extensions = [
'nbsphinx', 'nbsphinx',
'sphinxcontrib.doxylink'] 'sphinxcontrib.doxylink']
sys.path.insert(0, "@HYSOP_BUILD_PYTHONPATH@") sys.path.insert(0, "@HYSOP_PYTHONPATH@/hysop")
numpydoc_class_members_toctree = True numpydoc_class_members_toctree = True
numpydoc_show_class_members = False numpydoc_show_class_members = False
# Napoleon settings # Napoleon settings
......
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