mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
26 lines
702 B
Bash
Executable File
26 lines
702 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -x -e
|
|
|
|
ccache --show-stats ||:
|
|
ccache --zero-stats ||:
|
|
read -ra ALIEN_PKGS <<< "${ALIEN_PKGS:-}"
|
|
build/release --no-pbuilder "${ALIEN_PKGS[@]}" | ts '%Y-%m-%d %H:%M:%S'
|
|
mv /*.deb /output
|
|
mv -- *.changes /output
|
|
mv -- *.buildinfo /output
|
|
mv /*.rpm /output ||: # if exists
|
|
mv /*.tgz /output ||: # if exists
|
|
|
|
if [ -n "$BINARY_OUTPUT" ] && { [ "$BINARY_OUTPUT" = "programs" ] || [ "$BINARY_OUTPUT" = "tests" ] ;}
|
|
then
|
|
echo "Place $BINARY_OUTPUT to output"
|
|
mkdir /output/binary ||: # if exists
|
|
mv /build/obj-*/programs/clickhouse* /output/binary
|
|
if [ "$BINARY_OUTPUT" = "tests" ]
|
|
then
|
|
mv /build/obj-*/src/unit_tests_dbms /output/binary
|
|
fi
|
|
fi
|
|
ccache --show-stats ||:
|