mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Fix coverage image
This commit is contained in:
parent
aaa8032e83
commit
6edc7bd089
@ -12,7 +12,7 @@ RUN apt-get --allow-unauthenticated update -y \
|
||||
software-properties-common
|
||||
|
||||
|
||||
RUN echo "deb [trusted=yes] http://apt.llvm.org/bionic/ llvm-toolchain-bionic main" >> /etc/apt/sources.list
|
||||
RUN echo "deb [trusted=yes] http://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main" >> /etc/apt/sources.list
|
||||
|
||||
RUN apt-get --allow-unauthenticated update -y \
|
||||
&& env DEBIAN_FRONTEND=noninteractive \
|
||||
@ -29,7 +29,7 @@ ENV OUTPUT_DIR=/output
|
||||
ENV IGNORE='.*contrib.*'
|
||||
|
||||
|
||||
CMD mkdir -p /build/obj-x86_64-linux-gnu && cd /build/obj-x86_64-linux-gnu && CC=clang-7 CXX=clang++-7 cmake .. && cd /; \
|
||||
CMD mkdir -p /build/obj-x86_64-linux-gnu && cd /build/obj-x86_64-linux-gnu && CC=clang-8 CXX=clang++-8 cmake .. && cd /; \
|
||||
dpkg -i /package_folder/clickhouse-common-static_*.deb; \
|
||||
llvm-profdata-9 merge -sparse ${COVERAGE_DIR}/* -o clickhouse.profdata && \
|
||||
llvm-cov-9 export /usr/bin/clickhouse -instr-profile=clickhouse.profdata -j=16 -format=lcov -skip-functions -ignore-filename-regex $IGNORE > output.lcov && \
|
||||
|
@ -12,7 +12,7 @@ kill_clickhouse () {
|
||||
wait_llvm_profdata () {
|
||||
while kill -0 `pgrep llvm-profdata-9`;
|
||||
do
|
||||
echo "Waiting for profdata " `pgrep llvm-profdata-9` "still alive"
|
||||
echo "Waiting for profdata" `pgrep llvm-profdata-9` "still alive"
|
||||
sleep 3
|
||||
done
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user