toxcore/.circleci/config.yml
iphydf c0c3098737
Avoid side-effectful assignments in conditionals.
Only in audio.c for now. This should be done everywhere.
2018-07-08 19:34:45 +00:00

44 lines
1.1 KiB
YAML

version: 2
workflows:
version: 2
build_linux:
jobs:
- x86_64
jobs:
x86_64:
working_directory: ~/work
docker:
- image: ubuntu
steps:
- checkout
- run: apt update
- run: apt install -y --no-install-recommends
clang
cmake
libconfig-dev
libgtest-dev
libopus-dev
libsodium-dev
libvpx-dev
ninja-build
pkg-config
- run: . .travis/flags-clang.sh;
add_flag -fsanitize=address;
cmake -H. -B_build -GNinja
-DCMAKE_C_FLAGS="$C_FLAGS"
-DCMAKE_CXX_FLAGS="$CXX_FLAGS"
-DCMAKE_EXE_LINKER_FLAGS="$LD_FLAGS"
-DCMAKE_SHARED_LINKER_FLAGS="$LD_FLAGS"
-DCMAKE_INSTALL_PREFIX:PATH="$PWD/_install"
-DTRACE=ON
-DMUST_BUILD_TOXAV=ON
-DSTRICT_ABI=ON
-DTEST_TIMEOUT_SECONDS=120
-DUSE_IPV6=OFF
- run: cd _build && ninja install -j$(nproc)
- run: cd _build && ctest -j50 --output-on-failure ||
ctest -j50 --output-on-failure --rerun-failed