Debian Codegraph @

.circleci/config.yml

raw
1 version: 2
2 jobs:
3 build:
4 machine:
5 image: ubuntu-2204:2024.11.1
6 working_directory: ~/project
7 steps:
8 - checkout
9 - run:
10 name: Setup nvim ppa
11 command: sudo add-apt-repository --yes ppa:neovim-ppa/unstable
12 - run:
13 name: APT update
14 command: sudo apt-get update
15 - run:
16 name: Install dependencies
17 command: |
18 sudo NEEDRESTART_MODE=l apt-get install -y cmake libqt5svg5 libqt5svg5-dev neovim python3-dev python3-jinja2 python3-msgpack python3-pip qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools
19
20 sudo NEEDRESTART_MODE=l apt-get install -y lcov
21 - run:
22 name: build
23 command: |
24 pyenv global system
25 mkdir build
26 cd build
27 cmake -DCMAKE_BUILD_TYPE=Debug -DUSE_GCOV=ON -DPYTHON_EXECUTABLE=/usr/bin/python3 ..
28 cmake --build . --target bindings -- VERBOSE=1
29 cmake --build . -- VERBOSE=1
30 - run:
31 name: test
32 command: |
33 cd build
34 ctest -VV
35 - run:
36 name: Generate coverage report with lcov
37 command: lcov --directory . --capture --output-file coverage.info
38 - run:
39 name: Upload coverage report to codecov
40 command: bash <(curl -s https://codecov.io/bash) -f coverage.info