ClickHouse/docker/packager/deb/build.sh

26 lines
722 B
Bash
Raw Normal View History

2019-04-25 12:29:28 +00:00
#!/usr/bin/env bash
set -x -e
2019-05-15 17:19:39 +00:00
ccache --show-stats ||:
ccache --zero-stats ||:
2019-09-17 19:26:24 +00:00
build/release --no-pbuilder $ALIEN_PKGS | ts '%Y-%m-%d %H:%M:%S'
2019-04-25 12:29:28 +00:00
mv /*.deb /output
mv *.changes /output
mv *.buildinfo /output
mv /*.rpm /output ||: # if exists
mv /*.tgz /output ||: # if exists
2020-04-06 08:37:16 +00:00
2020-04-09 09:04:30 +00:00
if [ -n "$BINARY_OUTPUT" ] && { [ "$BINARY_OUTPUT" = "programs" ] || [ "$BINARY_OUTPUT" = "tests" ] ;}
2020-04-06 08:37:16 +00:00
then
2020-04-09 09:04:30 +00:00
echo Place $BINARY_OUTPUT to output
mkdir /output/binary ||: # if exists
2020-05-18 12:32:06 +00:00
mv /build/obj-*/programs/clickhouse* /output/binary
2020-04-09 09:04:30 +00:00
if [ "$BINARY_OUTPUT" = "tests" ]
then
2020-05-18 12:32:06 +00:00
mv /build/obj-*/src/unit_tests_dbms /output/binary
2020-04-09 09:04:30 +00:00
fi
2020-04-06 08:37:16 +00:00
fi
2019-05-15 17:19:39 +00:00
ccache --show-stats ||:
2020-05-14 09:36:17 +00:00
ln -s /usr/lib/x86_64-linux-gnu/libOpenCL.so.1.0.0 /usr/lib/libOpenCL.so ||: