toxcore/.circleci/config.yml

92 lines
2.0 KiB
YAML
Raw Normal View History

---
version: 2
workflows:
version: 2
program-analysis:
jobs:
# Dynamic analysis
- asan
- tsan
# Static analysis
- static-analysis
- infer
jobs:
2018-08-19 19:02:16 +08:00
asan:
working_directory: ~/work
docker:
- image: ubuntu
steps:
- checkout
- run: &apt_install
2020-04-24 22:18:00 +08:00
apt-get update &&
DEBIAN_FRONTEND=noninteractive
apt-get install -y --no-install-recommends
clang
cmake
libconfig-dev
libgtest-dev
libopus-dev
libsodium-dev
libvpx-dev
llvm-dev
ninja-build
pkg-config
- run: CC=clang .circleci/cmake-asan
2018-08-19 19:02:16 +08:00
tsan:
working_directory: ~/work
docker:
- image: ubuntu
2018-08-19 19:02:16 +08:00
steps:
- checkout
- run: *apt_install
- run: CC=clang .circleci/cmake-tsan
infer:
working_directory: ~/work
docker:
- image: toxchat/infer
steps:
- run:
apt-get update &&
DEBIAN_FRONTEND=noninteractive
apt-get install -y --no-install-recommends
git
libopus-dev
libsodium-dev
libvpx-dev
pkg-config
- checkout
- run: infer --no-progress-bar -- cc toxav/*.c toxcore/*.c $(pkg-config --cflags opus vpx)
static-analysis:
working_directory: ~/work
docker:
- image: ubuntu
steps:
- checkout
- run:
apt-get update &&
DEBIAN_FRONTEND=noninteractive
apt-get install -y --no-install-recommends
clang
cppcheck
g++
libconfig-dev
libopus-dev
libsodium-dev
libvpx-dev
llvm
- run: other/analysis/check_logger_levels
- run: other/analysis/run-check-recursion
- run: other/analysis/run-clang
- run: other/analysis/run-clang-analyze
- run: other/analysis/run-cppcheck
- run: other/analysis/run-gcc