Circle CI: Upload coverage data

This commit is contained in:
Paweł Bylica 2018-07-23 13:29:55 +02:00
parent 807f7533d9
commit a1d3e72bb5
No known key found for this signature in database
GPG Key ID: 7A0C037434FE77EF

View File

@ -14,7 +14,7 @@ defaults:
command: | command: |
mkdir -p build mkdir -p build
cd build cd build
cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo $CMAKE_OPTIONS
make -j4 make -j4
- run_tests: &run_tests - run_tests: &run_tests
name: Tests name: Tests
@ -122,6 +122,7 @@ jobs:
- image: buildpack-deps:artful - image: buildpack-deps:artful
environment: environment:
TERM: xterm TERM: xterm
CMAKE_OPTIONS: -DCOVERAGE=ON
steps: steps:
- checkout - checkout
- run: - run:
@ -191,9 +192,19 @@ jobs:
name: Install dependencies name: Install dependencies
command: | command: |
apt-get -qq update apt-get -qq update
apt-get -qy install libz3-dev libleveldb1v5 apt-get -qy install libz3-dev libleveldb1v5 python-pip
pip install codecov
- run: mkdir -p test_results - run: mkdir -p test_results
- run:
name: Test type checker
command: build/test/soltest -t 'syntaxTest*' -- --no-ipc --testpath test
- run:
name: Coverage of type checker
command: codecov --flags type_checker --gcov-root build
- run: *run_tests - run: *run_tests
- run:
name: Coverage of all
command: codecov --flags all --gcov-root build
- store_test_results: - store_test_results:
path: test_results/ path: test_results/