diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-06-24 22:56:07 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-07-01 08:35:44 +0000 |
commit | 1a54be06cd359257478b584611f34058d21fe723 (patch) | |
tree | db3d6ca2dfa2a87ae2efdac6e412c2b780a64009 /.circleci | |
parent | 706fad1ce88c2104009a3835ee343ff9d8ec8b79 (diff) |
Simplify Travis CI builds.
Have one script per build. This means more duplication between the
scripts, but it's much easier to understand and to run locally.
Diffstat (limited to '.circleci')
-rw-r--r-- | .circleci/config.yml | 32 |
1 files changed, 26 insertions, 6 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml index 3e6f293e..f85e9548 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml | |||
@@ -10,13 +10,33 @@ jobs: | |||
10 | x86_64: | 10 | x86_64: |
11 | working_directory: ~/work | 11 | working_directory: ~/work |
12 | docker: | 12 | docker: |
13 | - image: circleci/builder-base:latest | 13 | - image: ubuntu |
14 | 14 | ||
15 | steps: | 15 | steps: |
16 | - checkout | 16 | - checkout |
17 | - run: add-apt-repository ppa:chris-lea/libsodium | ||
18 | - run: apt update | 17 | - run: apt update |
19 | - run: apt install -y clang cmake libgtest-dev libopus-dev libsodium-dev libvpx-dev pkg-config | 18 | - run: apt install -y --no-install-recommends |
20 | - run: cmake -H. -B_build -DDEBUG=ON -DTRACE=ON -DERROR_ON_WARNING=ON -DASAN=ON -DMUST_BUILD_TOXAV=ON -DSTRICT_ABI=ON -DTEST_TIMEOUT_SECONDS=90 -DUSE_IPV6=OFF | 19 | clang |
21 | - run: make -C _build -j$(nproc) | 20 | cmake |
22 | - run: make -C _build test ARGS="-j50 --rerun-failed" CTEST_OUTPUT_ON_FAILURE=1 || make -C _build test ARGS="-j50 --rerun-failed" CTEST_OUTPUT_ON_FAILURE=1 | 21 | libconfig-dev |
22 | libgtest-dev | ||
23 | libopus-dev | ||
24 | libsodium-dev | ||
25 | libvpx-dev | ||
26 | ninja-build | ||
27 | pkg-config | ||
28 | - run: . .travis/flags-clang.sh; | ||
29 | add_flag -fsanitize=address; | ||
30 | cmake -H. -B_build -GNinja | ||
31 | -DCMAKE_C_FLAGS="$C_FLAGS" | ||
32 | -DCMAKE_CXX_FLAGS="$CXX_FLAGS" | ||
33 | -DCMAKE_EXE_LINKER_FLAGS="$LD_FLAGS" | ||
34 | -DCMAKE_SHARED_LINKER_FLAGS="$LD_FLAGS" | ||
35 | -DCMAKE_INSTALL_PREFIX:PATH="$PWD/_install" | ||
36 | -DTRACE=ON | ||
37 | -DMUST_BUILD_TOXAV=ON | ||
38 | -DSTRICT_ABI=ON | ||
39 | -DTEST_TIMEOUT_SECONDS=120 | ||
40 | -DUSE_IPV6=OFF | ||
41 | - run: cd _build && ninja install -j$(nproc) | ||
42 | - run: cd _build && ctest -j50 --output-on-failure | ||