Skip to content

Commit

Permalink
chore: Add an easy way to run autotools and circleci builds locally.
Browse files Browse the repository at this point in the history
  • Loading branch information
iphydf committed Feb 6, 2022
1 parent f87a6df commit 4d41202
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/scripts/flags-clang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 3 additions & 0 deletions other/docker/autotools/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

docker build -t toxchat/c-toxcore:autotools -f other/docker/autotools/Dockerfile .
1 change: 1 addition & 0 deletions other/docker/circleci/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ RUN apt-get update && \
libopus-dev \
libsodium-dev \
libvpx-dev \
llvm-dev \
ninja-build \
pkg-config \
&& apt-get clean \
Expand Down
6 changes: 6 additions & 0 deletions other/docker/circleci/run
Original file line number Diff line number Diff line change
@@ -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"
4 changes: 2 additions & 2 deletions other/docker/doxygen/run
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4d41202

Please sign in to comment.