# XXX perhaps use job parameters instead of literals; then
# later stages can also use them to compare etc.
-if [[ "$CI_CONTAINER" == true && $DISTRO == "centos" && $FLAVOR == "default" ]] ; then
+if [[ "$CI_CONTAINER" == true && $DISTRO == "centos" && $FLAVOR != "notcmalloc" ]] ; then
loop=0
ready=false
while ((loop < 15)); do
# Flavor Builds support
-if [ "${FLAVOR}" == "notcmalloc" ]
-then
- echo "Detected notcmalloc flavor: will use flag: -DALLOCATOR=libc"
- CEPH_EXTRA_RPMBUILD_ARGS="--without tcmalloc"
- CEPH_EXTRA_CMAKE_ARGS="$CEPH_EXTRA_CMAKE_ARGS -DALLOCATOR=libc -DWITH_CEPH_DEBUG_MUTEX=ON"
-else
- CEPH_EXTRA_RPMBUILD_ARGS="--with tcmalloc"
- CEPH_EXTRA_CMAKE_ARGS="$CEPH_EXTRA_CMAKE_ARGS -DALLOCATOR=tcmalloc"
-fi
+case "${FLAVOR}" in
+ notcmalloc)
+ echo "Detected notcmalloc flavor: will use flag: -DALLOCATOR=libc"
+ CEPH_EXTRA_RPMBUILD_ARGS="--without tcmalloc"
+ CEPH_EXTRA_CMAKE_ARGS="$CEPH_EXTRA_CMAKE_ARGS -DALLOCATOR=libc -DWITH_CEPH_DEBUG_MUTEX=ON"
+ ;;
+ default)
+ CEPH_EXTRA_RPMBUILD_ARGS="--with tcmalloc"
+ CEPH_EXTRA_CMAKE_ARGS="$CEPH_EXTRA_CMAKE_ARGS -DALLOCATOR=tcmalloc"
+ ;;
+ crimson)
+ CEPH_EXTRA_RPMBUILD_ARGS="--with seastar"
+ CEPH_EXTRA_CMAKE_ARGS="$CEPH_EXTRA_CMAKE_ARGS -DWITH_SEASTAR=ON"
+ ;;
+ *)
+ echo "unknown FLAVOR: ${FLAVOR}" >&2
+ exit 1
+esac
# When using autotools/autoconf it is possible to see output from `git diff`
# since some macros can be copied over to the ceph source, triggering this
choices:
- default
- notcmalloc
+ - crimson
default: "default"
- description: "Type of Ceph build, choices are: notcmalloc, default (i.e. with tcmalloc). Defaults to: 'default'"
+ description: "Type of Ceph build, choices are: crimson, notcmalloc, default (i.e. with tcmalloc). Defaults to: 'default'"
- bool:
name: CI_CONTAINER