Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 0af95302 authored by hhakim's avatar hhakim
Browse files

Add cmake script to generate the FAµST data archive and modify the gitlab ci...

Add cmake script to generate the FAµST data archive and modify the gitlab ci pages job to host it automatically on gitlab-pages when tag is pushed.
parent 5906c227
No related branches found
No related tags found
No related merge requests found
Pipeline #834091 skipped
......@@ -2,8 +2,9 @@ variables:
# variables defining where to find the FAµST external data
# used by package build scripts
# Warning: DURL is the base url without the filename
DURL: "https://gitlab.inria.fr/faustgrp/gforge_files/-/raw/master/"
DFILE: "faust_data-3.5.2.zip"
# DURL: "https://gitlab.inria.fr/faustgrp/gforge_files/-/raw/master/"
DURL: "https://faustgrp.gitlabpages.inria.fr/faust/last-doc/html/"
DFILE: "faust_data.zip"
JOB_PYTHON: "python3.9" # if set again in job, it hides this one (precedence: https://docs.gitlab.com/13.6/ee/ci/variables/#priority-of-environment-variables)
WIN_PY_VER: '3.10' # default python version used to build python wrapper on windows (for both whl package and nsis .exe)
NIX_PY_VER: '3.10' # default python version used to build python wrapper for "unix" system packages (pkg/macos, rpm/deb/linux)
......@@ -376,6 +377,7 @@ pages:
- 'cmake -DBUILD_WRAPPER_PYTHON=ON -DBUILD_WRAPPER_MATLAB=ON -DBUILD_DOCUMENTATION=ON -DCMAKE_INSTALL_PREFIX=/opt/local/faust -DCPACK_PACKAGE_FILE_NAME=faust-$CI_COMMIT_TAG -DCPACK_PACKAGE_VERSION=$CI_COMMIT_TAG -DEXCLUDE_FAUST_LIB_INSTALL=ON -DINCLUDE_ALL_SYS_INSTALL_INSTRUCS=ON ..'
- make doc
- make doc_exclu_class_filtering
- make zip_data_archive # generate the FAµST data archive
# test that the doc generation works well (at least that html files for the pyfaust and matfaust namespaces exist)
# in order to avoid publishing an empty API doc
- if [ ! -r doc/html/namespacepyfaust.html -o ! -r doc/html/namespacematfaust.html ]; then echo "error with doxygen doc generation" 2>&1 && exit 1; fi
......
set(DATA_ARCHIVE_FILES;config_compared_palm2.mat;faust_MEG_rcg_16.mat;faust_MEG_rcg_25.mat;faust_MEG_rcg_6.mat;faust_MEG_rcg_8.mat;faust_quick_start.mat;F_DYNPROG.mat;F_GREEDY.mat;HierarchicalFactFFT_test_U_L_params.mat;Laplacian_1024_community.mat;Laplacian_1024_erdos_renyi.mat;Laplacian_1024_path.mat;Laplacian_1024_random_ring.mat;Laplacian_1024_ring.mat;Laplacian_1024_sensor.mat;Laplacian_128_community.mat;Laplacian_128_erdos_renyi.mat;Laplacian_128_path.mat;Laplacian_128_random_ring.mat;Laplacian_128_ring.mat;Laplacian_128_sensor.mat;Laplacian_256_community.mat;Laplacian_256_erdos_renyi.mat;Laplacian_256_path.mat;Laplacian_256_random_ring.mat;Laplacian_256_ring.mat;Laplacian_256_sensor.mat;Laplacian_512_community.mat;Laplacian_512_erdos_renyi.mat;Laplacian_512_path.mat;Laplacian_512_random_ring.mat;Laplacian_512_ring.mat;Laplacian_512_sensor.mat;matrix_HADAMARD_32.mat;matrix_hierarchical_fact.mat;matrix_MEG.mat;M_DYNPROG.mat;M_GREEDY.mat;ref_test_PALM4SMA_FFT2.mat;supports.mat;test_GivensDiag_Lap_U_J.mat;test_GivensDiagParallel_Lap_U_J_choices.mat)
add_custom_target(zip_data_archive zip faust_data.zip -O ${PROJECT_BINARY_DIR}/doc/html/faust_data.zip ${DATA_ARCHIVE_FILES} WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/misc/data/mat COMMENT "Archiving FAµST data into faust_data.zip")
......@@ -184,8 +184,7 @@ if(BUILD_DOCUMENTATION)
endif(BUILD_DOCUMENTATION)
include("${PROJECT_SOURCE_DIR}/CMake/zip_data_archive.cmake")
#IF (DOXYGEN_FOUND)
# IF (NOT DOXY_IN_FILE_UPDATED)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment