Skip to content

Commit

Permalink
Add sonarcloud build-wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvdb committed Dec 13, 2021
1 parent 745087d commit c418037
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: docker/build-push-action@v2
with:
push: ${{ steps.version.outputs.version_docker_ci != 'null' }}
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
tags: ${{ github.repository }}:${{ steps.version.outputs.version_docker_ci }}
push: true
platforms: linux/amd64
tags: ${{ github.repository }}:0.16-sonarcloud-buildwrapper

19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,25 @@ RUN set -e -x; \
# ctest -D ExperimentalMemCheck; may not work in all architectures
RUN apt-get install -y --no-install-recommends valgrind || true

RUN apt-get install -y --no-install-recommends gcovr

# Used by sonarcloud build wrapper
RUN apt-get install -y --no-install-recommends \
wget unzip

# The .so must be located beside the bin
RUN mkdir /root/tmp && \
cd /root/tmp && \
wget https://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip && \
unzip build-wrapper-linux-x86.zip && \
cd build-wrapper-linux-x86 && \
mv build-wrapper-linux-x86-64 /usr/bin && \
mv libinterceptor-haswell.so libinterceptor-i686.so libinterceptor-x86_64.so /usr/bin/ && \
cd .. && \
rmdir build-wrapper-linux-x86 && \
rm *.zip && \
rmdir /root/tmp

# setup su for dep installation
RUN sed -i '/pam_rootok.so$/aauth sufficient pam_permit.so' /etc/pam.d/su

Expand Down

0 comments on commit c418037

Please sign in to comment.