Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 87363af3 authored by hhakim's avatar hhakim
Browse files

Update release rpm/deb generation ci job script: concise output (with full log...

Update release rpm/deb generation ci job script: concise output (with full log in /tmp), var. env. sanity check, temporary cpack files deletion.
parent 47b20e20
No related branches found
No related tags found
No related merge requests found
#!/bin/bash #!/bin/bash
# needed env. variables: FAUST_VERSION, DURL, DFILE, EXPERIMENTAL_PKG, NYX_PY_VER # needed env. variables: FAUST_VERSION, DURL, DFILE, EXPERIMENTAL_PKG, NUX_PY_VER
for V in FAUST_VERSION DURL DFILE EXPERIMENTAL_PKG NUX_PY_VER
do
[[ -z $(env | grep ^$V=) ]] && echo "ERROR: $V variable must be set in the environment." >&2 && exit 1
done
export PYTHON_PATH=$(which python$NUX_PY_VER) export PYTHON_PATH=$(which python$NUX_PY_VER)
if [[ ! -d 'build' ]]; then mkdir build;fi; cd build if [[ ! -d 'build' ]]; then mkdir build;fi; cd build
# build python and matlab wrappers separately to use clang for python and gcc for matlab
# build python and matlab wrappers separately to use clang for python and gcc for matlab
cmake -DBUILD_WRAPPER_PYTHON=OFF -DBUILD_WRAPPER_MATLAB=ON -DBUILD_DOCUMENTATION=ON -DCMAKE_INSTALL_PREFIX=/opt/local/faust-$FAUST_VERSION -DCPACK_PACKAGE_FILE_NAME=faust-$FAUST_VERSION -DCPACK_PACKAGE_VERSION=$FAUST_VERSION -DBUILD_TESTING=OFF -DREMOTE_DATA_URL="$DURL" -DREMOTE_DATA_FILE="$DFILE" -DEXPERIMENTAL_PKG=$EXPERIMENTAL_PKG -DNOPY2=ON -DUSE_GPU_MOD=ON -DCMAKE_PREFIX_PATH=$PWD/../gpu_mod -DBUILD_FLOAT_PYX=ON .. cmake -DBUILD_WRAPPER_PYTHON=OFF -DBUILD_WRAPPER_MATLAB=ON -DBUILD_DOCUMENTATION=ON -DCMAKE_INSTALL_PREFIX=/opt/local/faust-$FAUST_VERSION -DCPACK_PACKAGE_FILE_NAME=faust-$FAUST_VERSION -DCPACK_PACKAGE_VERSION=$FAUST_VERSION -DBUILD_TESTING=OFF -DREMOTE_DATA_URL="$DURL" -DREMOTE_DATA_FILE="$DFILE" -DEXPERIMENTAL_PKG=$EXPERIMENTAL_PKG -DNOPY2=ON -DUSE_GPU_MOD=ON -DCMAKE_PREFIX_PATH=$PWD/../gpu_mod -DBUILD_FLOAT_PYX=ON ..
make # concise output for make (gitlab output is limited)
make 2>&1 | tee /tmp/log_$(basename $0)_make_$(date +%s) | grep "error:"
cmake -DCMAKE_CXX_COMPILER=clang++ .. # it needs to be made separately because it cleans up other variables (for building both faust.a and python wrapper with clang -- necessary to avoid unresolved c++ symbols which happens by mixing up gcc and clang objects) cmake -DCMAKE_CXX_COMPILER=clang++ .. # it needs to be made separately because it cleans up other variables (for building both faust.a and python wrapper with clang -- necessary to avoid unresolved c++ symbols which happens by mixing up gcc and clang objects)
cmake -DBUILD_WRAPPER_PYTHON=ON -DBUILD_WRAPPER_MATLAB=ON -DBUILD_DOCUMENTATION=ON -DCMAKE_INSTALL_PREFIX=/opt/local/faust-$FAUST_VERSION -DCPACK_PACKAGE_FILE_NAME=faust-$FAUST_VERSION -DCPACK_PACKAGE_VERSION=$FAUST_VERSION -DBUILD_TESTING=OFF -DREMOTE_DATA_URL="$DURL" -DREMOTE_DATA_FILE="$DFILE" -DEXPERIMENTAL_PKG=$EXPERIMENTAL_PKG -DNOPY2=ON -DUSE_GPU_MOD=ON -DCMAKE_PREFIX_PATH=$PWD/../gpu_mod -DBUILD_FLOAT_PYX=ON .. cmake -DBUILD_WRAPPER_PYTHON=ON -DBUILD_WRAPPER_MATLAB=ON -DBUILD_DOCUMENTATION=ON -DCMAKE_INSTALL_PREFIX=/opt/local/faust-$FAUST_VERSION -DCPACK_PACKAGE_FILE_NAME=faust-$FAUST_VERSION -DCPACK_PACKAGE_VERSION=$FAUST_VERSION -DBUILD_TESTING=OFF -DREMOTE_DATA_URL="$DURL" -DREMOTE_DATA_FILE="$DFILE" -DEXPERIMENTAL_PKG=$EXPERIMENTAL_PKG -DNOPY2=ON -DUSE_GPU_MOD=ON -DCMAKE_PREFIX_PATH=$PWD/../gpu_mod -DBUILD_FLOAT_PYX=ON ..
make clean make clean
...@@ -14,6 +21,8 @@ make faust ...@@ -14,6 +21,8 @@ make faust
make faust_python make faust_python
# generate package via cpack # generate package via cpack
cpack -G RPM -C CPackConfig.cmake cpack -G RPM -C CPackConfig.cmake
# remove package temporary files
rm -Rf _CPack_Packages/x86_64/RPM
cpack -G DEB -C CPackConfig.cmake cpack -G DEB -C CPackConfig.cmake
rm -Rf _CPack_Packages/x86_64/DEB
cp faust-$FAUST_VERSION*rpm faust-$FAUST_VERSION*deb $HOME cp faust-$FAUST_VERSION*rpm faust-$FAUST_VERSION*deb $HOME
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment