mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
chore: Add an easy way to run autotools and circleci builds locally.
This commit is contained in:
parent
f87a6df938
commit
4d4120214a
1
.github/scripts/flags-clang.sh
vendored
1
.github/scripts/flags-clang.sh
vendored
|
@ -57,6 +57,5 @@ add_cxx_flag -Wno-c99-extensions
|
||||||
add_cxx_flag -Wno-old-style-cast
|
add_cxx_flag -Wno-old-style-cast
|
||||||
|
|
||||||
# Downgrade to warning so we still see it.
|
# 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=unreachable-code
|
||||||
add_flag -Wno-error=unused-variable
|
add_flag -Wno-error=unused-variable
|
||||||
|
|
3
other/docker/autotools/run
Executable file
3
other/docker/autotools/run
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
docker build -t toxchat/c-toxcore:autotools -f other/docker/autotools/Dockerfile .
|
|
@ -10,6 +10,7 @@ RUN apt-get update && \
|
||||||
libopus-dev \
|
libopus-dev \
|
||||||
libsodium-dev \
|
libsodium-dev \
|
||||||
libvpx-dev \
|
libvpx-dev \
|
||||||
|
llvm-dev \
|
||||||
ninja-build \
|
ninja-build \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
|
|
6
other/docker/circleci/run
Executable file
6
other/docker/circleci/run
Executable 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"
|
|
@ -2,5 +2,5 @@
|
||||||
|
|
||||||
set -eux
|
set -eux
|
||||||
|
|
||||||
docker build -t toxchat/toxcore:docs -f other/docker/doxygen/Dockerfile .
|
docker build -t toxchat/c-toxcore:docs -f other/docker/doxygen/Dockerfile .
|
||||||
docker run --rm -it -p "28192:80" toxchat/toxcore:docs
|
docker run --rm -it -p "28192:80" toxchat/c-toxcore:docs
|
||||||
|
|
Loading…
Reference in New Issue
Block a user