-
Notifications
You must be signed in to change notification settings - Fork 170
/
config.yml
46 lines (45 loc) · 1.67 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
version: 2
jobs:
build:
machine:
image: ubuntu-1604:201903-01
working_directory: ~/project
steps:
- checkout
- run:
name: Setup nvim ppa
command: sudo add-apt-repository --yes ppa:neovim-ppa/unstable
- run:
name: APT update
command: sudo apt-get update
- run:
name: Install dependencies
command: |
sudo apt-get install -y cmake libqt5svg5 libqt5svg5-dev neovim python3-dev python3-jinja2 python3-msgpack python3-pip qt5-default
pip install --user cpp-coveralls PyYAML
sudo apt-get install -y lcov
- run:
name: build
command: |
pyenv global system
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug -DUSE_GCOV=ON -DPYTHON_EXECUTABLE=/usr/bin/python3 ..
cmake --build . --target bindings -- VERBOSE=1
cmake --build . -- VERBOSE=1
- run:
name: test
command: |
cd build
ctest -VV
- run:
name: Upload coverage report
# trick cpp-coveralls into doing the right thing
# https://github.com/eddyxu/cpp-coveralls/issues/143
command: TRAVIS_JOB_ID="#${CIRCLE_BUILD_NUM}" ~/.local/bin/cpp-coveralls -y contrib/coveralls-circle.yml -E '.*/build/.*' -E '.*/third-party/.*' -E '.*/test/.*' -E '.*/bindings/.*'
- run:
name: Generate coverage report with lcov
command: lcov --directory . --capture --output-file coverage.info
- run:
name: Upload coverage report to codecov
command: bash <(curl -s https://codecov.io/bash) -f coverage.info