mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-05 05:18:52 +08:00
24 lines
512 B
Bash
Executable File
24 lines
512 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -ex
|
|
|
|
source $TRAVIS_BUILD_DIR/ci/travis/travis_env_common.sh
|
|
|
|
only_library_mode=no
|
|
|
|
while true; do
|
|
case "$1" in
|
|
--only-library)
|
|
only_library_mode=yes
|
|
shift ;;
|
|
*) break ;;
|
|
esac
|
|
done
|
|
|
|
BUILD_COMMON_FLAGS="-t ${MILVUS_BUILD_TYPE} -o ${MILVUS_INSTALL_PREFIX} -b ${MILVUS_BUILD_DIR}"
|
|
|
|
if [ $only_library_mode == "yes" ]; then
|
|
${TRAVIS_BUILD_DIR}/ci/scripts/build.sh ${BUILD_COMMON_FLAGS} -m
|
|
else
|
|
${TRAVIS_BUILD_DIR}/ci/scripts/build.sh ${BUILD_COMMON_FLAGS} -m -u -c
|
|
fi |