|
| 1 | +--- |
1 | 2 | version: 2 |
2 | 3 |
|
3 | 4 | workflows: |
4 | 5 | version: 2 |
5 | 6 | build_linux: |
6 | 7 | jobs: |
7 | | - - asan |
| 8 | + - asan |
8 | 9 |
|
9 | 10 | jobs: |
10 | 11 | asan: |
11 | 12 | working_directory: ~/work |
12 | 13 | docker: |
13 | | - - image: ubuntu |
| 14 | + - image: ubuntu |
14 | 15 |
|
15 | 16 | steps: |
16 | | - - checkout |
17 | | - - run: apt update |
18 | | - - run: apt install -y --no-install-recommends |
19 | | - gcc |
20 | | - g++ |
21 | | - cmake |
22 | | - git |
23 | | - libopus-dev |
24 | | - libsodium-dev |
25 | | - libvpx-dev |
26 | | - ninja-build |
27 | | - pkg-config |
28 | | - python3.6-dev |
29 | | - python3-setuptools |
30 | | - - run: git clone --depth=1 git://github.com/TokTok/c-toxcore |
31 | | - - run: cd c-toxcore; |
32 | | - . .travis/flags-gcc.sh; |
33 | | - add_flag -fsanitize=address; |
34 | | - cmake -H. -B_build -GNinja |
35 | | - -DCMAKE_C_FLAGS="$C_FLAGS" |
36 | | - -DCMAKE_CXX_FLAGS="$CXX_FLAGS" |
37 | | - -DCMAKE_EXE_LINKER_FLAGS="$LD_FLAGS" |
38 | | - -DCMAKE_SHARED_LINKER_FLAGS="$LD_FLAGS" |
39 | | - -DCMAKE_INSTALL_PREFIX:PATH="$PWD/_install" |
40 | | - -DENABLE_STATIC=OFF |
41 | | - -DTRACE=ON |
42 | | - -DMUST_BUILD_TOXAV=ON |
43 | | - - run: cd c-toxcore/_build && ninja install -j$(nproc) |
44 | | - - run: export CFLAGS="-I$PWD/c-toxcore/_install/include -fsanitize=address"; |
45 | | - export LDFLAGS="-L$PWD/c-toxcore/_install/lib -Wl,-rpath,$PWD/c-toxcore/_install/lib"; |
46 | | - python3 setup.py build_ext --inplace |
47 | | - - run: ASAN_OPTIONS=detect_leaks=0 |
48 | | - LD_PRELOAD=libasan.so.4 |
49 | | - PYTHONPATH=. |
50 | | - python3 tests/tests.py |
| 17 | + - checkout |
| 18 | + - run: apt update |
| 19 | + - run: apt install -y --no-install-recommends |
| 20 | + gcc |
| 21 | + g++ |
| 22 | + cmake |
| 23 | + git |
| 24 | + libopus-dev |
| 25 | + libsodium-dev |
| 26 | + libvpx-dev |
| 27 | + ninja-build |
| 28 | + pkg-config |
| 29 | + python3.6-dev |
| 30 | + python3-setuptools |
| 31 | + - run: git clone --depth=1 git://github.com/TokTok/c-toxcore |
| 32 | + - run: cd c-toxcore; |
| 33 | + . .travis/flags-gcc.sh; |
| 34 | + add_flag -fsanitize=address; |
| 35 | + cmake -H. -B_build -GNinja |
| 36 | + -DCMAKE_C_FLAGS="$C_FLAGS" |
| 37 | + -DCMAKE_CXX_FLAGS="$CXX_FLAGS" |
| 38 | + -DCMAKE_EXE_LINKER_FLAGS="$LD_FLAGS" |
| 39 | + -DCMAKE_SHARED_LINKER_FLAGS="$LD_FLAGS" |
| 40 | + -DCMAKE_INSTALL_PREFIX:PATH="$PWD/_install" |
| 41 | + -DENABLE_STATIC=OFF |
| 42 | + -DTRACE=ON |
| 43 | + -DMUST_BUILD_TOXAV=ON |
| 44 | + - run: cd c-toxcore/_build && ninja install -j$(nproc) |
| 45 | + - run: export CFLAGS="-I$PWD/c-toxcore/_install/include -fsanitize=address"; |
| 46 | + export LDFLAGS="-L$PWD/c-toxcore/_install/lib -Wl,-rpath,$PWD/c-toxcore/_install/lib"; |
| 47 | + python3 setup.py build_ext --inplace |
| 48 | + - run: ASAN_OPTIONS=detect_leaks=0 |
| 49 | + LD_PRELOAD=libasan.so.4 |
| 50 | + PYTHONPATH=. |
| 51 | + python3 tests/tests.py |
0 commit comments