-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (56 loc) · 1.65 KB
/
codacy.yml
File metadata and controls
58 lines (56 loc) · 1.65 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Codacy
on:
push:
branches:
- develop
- master
- release/*
pull_request:
workflow_dispatch:
schedule:
- cron: '37 3 * * 6'
jobs:
codecov:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v6
- name: Compiler setup
run: sudo apt update; sudo apt install gcc-8 g++-8
- name: Checkout Boost
uses: actions/checkout@v6
with:
repository: boostorg/boost
ref: boost-1.81.0
path: .dep/boost
- name: Setup Boost
run: |
cd .dep/boost
git submodule update --init tools/build
git submodule update --init tools/boostdep
git submodule update --init libs/config
git submodule update --init libs/container
python tools/boostdep/depinst/depinst.py container
git submodule update --init libs/dynamic_bitset
python tools/boostdep/depinst/depinst.py dynamic_bitset
./bootstrap.sh
./b2 headers
- name: Check
env:
CXX: g++-8
CXXFLAGS: --coverage -O0 -std=c++17 -I ../.dep/boost
run: |
make -j check
make -j time
- name: LCOV setup
run: |
wget http://downloads.sourceforge.net/ltp/lcov-1.14.tar.gz
tar xvfz lcov-1.14.tar.gz
make -C lcov-1.14
- name: Coverage
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
run: |
lcov-1.14/bin/lcov --gcov-tool gcov-8 -c -d . -o cov.info
lcov-1.14/bin/lcov -e cov.info '*/cxon/*.hxx' -o cxon.info
lcov-1.14/bin/lcov -l cxon.info
bash <(curl -Ls https://coverage.codacy.com/get.sh) report -l CPP -r cxon.info || echo "upload failed"