Fix CI/CD pipeline

This commit is contained in:
Vivek Kumar Dutta 2025-11-21 12:02:30 +05:30
parent a707ed46b0
commit d08035acac
No known key found for this signature in database
GPG key ID: 4E09F5AD8265FD4C
3 changed files with 9 additions and 6 deletions

View file

@ -8,15 +8,17 @@ source ./gitlab-ci/shared.sh
exec_cmd apt update
exec_cmd pip3 install xlwt
mkdir -p /etc/bbfdm/dmmap
# Create directories for micro-service configuration and shared files
[ ! -d "${BBFDM_MS_CONF}" ] && mkdir -p "${BBFDM_MS_CONF}"
[ ! -d "${BBFDM_MS_DIR}" ] && mkdir -p "${BBFDM_MS_DIR}"
# Clean up generated files
rm -rf ${BBFDM_MS_DIR}/*
rm -f ${BBFDM_MS_CONF}/*
rm -f ${BBFDM_DMMAP_DIR}/*
rm -rf "${BBFDM_MS_DIR:?}"/*
rm -f "${BBFDM_MS_CONF}"/*
rm -f "${BBFDM_DMMAP_DIR}"/*
install_libeasy
# compile and install Core Data Model as a micro-service
install_libbbf ${1}

View file

@ -8,6 +8,7 @@ source ./gitlab-ci/shared.sh
exec_cmd apt update
exec_cmd pip3 install xlwt
mkdir -p /etc/bbfdm/dmmap
# Create directories for micro-service configuration and shared files
[ ! -d "${BBFDM_MS_CONF}" ] && mkdir -p "${BBFDM_MS_CONF}"
[ ! -d "${BBFDM_MS_DIR}" ] && mkdir -p "${BBFDM_MS_DIR}"
@ -17,6 +18,7 @@ rm -rf ${BBFDM_MS_DIR}/*
rm -f ${BBFDM_MS_CONF}/*
rm -f ${BBFDM_DMMAP_DIR}/*
install_libeasy
# compile and install Core Data Model as a micro-service
install_libbbf ${1}

View file

@ -139,10 +139,9 @@ function install_libeasy()
(
cd ${BBFDM_PLUGIN_DEST}/libeasy
exec_cmd cmake -DCMAKE_INSTALL_PREFIX=/usr .
exec_cmd make
sudo mkdir -p /usr/include/easy
sudo cp -a libeasy*.so* /usr/lib
sudo cp -a *.h /usr/include/easy/
exec_cmd make install
)
}