mirror of
https://github.com/luau-lang/luau.git
synced 2024-11-15 14:25:44 +08:00
Add Coveralls integration
Build and upload lcov-compatible coverage file to coveralls
This commit is contained in:
parent
0ded24c2d5
commit
7f3c033162
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
@ -69,6 +69,11 @@ jobs:
|
|||||||
- name: make coverage
|
- name: make coverage
|
||||||
run: |
|
run: |
|
||||||
CXX=clang++-10 make -j2 config=coverage coverage
|
CXX=clang++-10 make -j2 config=coverage coverage
|
||||||
|
- name: upload coverage
|
||||||
|
uses: coverallsapp/github-action@master
|
||||||
|
with:
|
||||||
|
path-to-lcov: ./coverage.info
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: coverage
|
name: coverage
|
||||||
|
1
Makefile
1
Makefile
@ -107,6 +107,7 @@ coverage: $(TESTS_TARGET)
|
|||||||
rm default.profraw default-flags.profraw
|
rm default.profraw default-flags.profraw
|
||||||
llvm-cov show -format=html -show-instantiations=false -show-line-counts=true -show-region-summary=false -ignore-filename-regex=\(tests\|extern\)/.* -output-dir=coverage --instr-profile default.profdata build/coverage/luau-tests
|
llvm-cov show -format=html -show-instantiations=false -show-line-counts=true -show-region-summary=false -ignore-filename-regex=\(tests\|extern\)/.* -output-dir=coverage --instr-profile default.profdata build/coverage/luau-tests
|
||||||
llvm-cov report -ignore-filename-regex=\(tests\|extern\)/.* -show-region-summary=false --instr-profile default.profdata build/coverage/luau-tests
|
llvm-cov report -ignore-filename-regex=\(tests\|extern\)/.* -show-region-summary=false --instr-profile default.profdata build/coverage/luau-tests
|
||||||
|
llvm-cov export -ignore-filename-regex=\(tests\|extern\)/.* -format lcov --instr-profile default.profdata build/coverage/luau-tests >coverage.info
|
||||||
|
|
||||||
format:
|
format:
|
||||||
find . -name '*.h' -or -name '*.cpp' | xargs clang-format -i
|
find . -name '*.h' -or -name '*.cpp' | xargs clang-format -i
|
||||||
|
Loading…
Reference in New Issue
Block a user