chore: Add an easy way to run autotools and circleci builds locally.

This commit is contained in:
iphydf 2022-02-06 00:05:40 +00:00
parent f87a6df938
commit 4d4120214a
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9
5 changed files with 12 additions and 3 deletions

View File

@ -57,6 +57,5 @@ add_cxx_flag -Wno-c99-extensions
add_cxx_flag -Wno-old-style-cast
# Downgrade to warning so we still see it.
add_flag -Wno-error=documentation-unknown-command
add_flag -Wno-error=unreachable-code
add_flag -Wno-error=unused-variable

3
other/docker/autotools/run Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
docker build -t toxchat/c-toxcore:autotools -f other/docker/autotools/Dockerfile .

View File

@ -10,6 +10,7 @@ RUN apt-get update && \
libopus-dev \
libsodium-dev \
libvpx-dev \
llvm-dev \
ninja-build \
pkg-config \
&& apt-get clean \

6
other/docker/circleci/run Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
SANITIZER="${1:-asan}"
docker build -t toxchat/c-toxcore:circleci other/docker/circleci
docker run --rm -it -v "$PWD:/c-toxcore" toxchat/c-toxcore:circleci "$SANITIZER"

View File

@ -2,5 +2,5 @@
set -eux
docker build -t toxchat/toxcore:docs -f other/docker/doxygen/Dockerfile .
docker run --rm -it -p "28192:80" toxchat/toxcore:docs
docker build -t toxchat/c-toxcore:docs -f other/docker/doxygen/Dockerfile .
docker run --rm -it -p "28192:80" toxchat/c-toxcore:docs