2018-06-24 20:41:26 +08:00
|
|
|
version: 2
|
|
|
|
|
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
build_linux:
|
|
|
|
jobs:
|
|
|
|
- x86_64
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
x86_64:
|
|
|
|
working_directory: ~/work
|
|
|
|
docker:
|
2018-06-25 06:56:07 +08:00
|
|
|
- image: ubuntu
|
2018-06-24 20:41:26 +08:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: apt update
|
2018-06-25 06:56:07 +08:00
|
|
|
- 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)
|
2018-07-08 22:19:07 +08:00
|
|
|
- run: cd _build && ctest -j50 --output-on-failure ||
|
|
|
|
ctest -j50 --output-on-failure --rerun-failed
|