-
-
Notifications
You must be signed in to change notification settings - Fork 10
61 lines (59 loc) · 4.03 KB
/
coverage.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: 'coverage'
on:
push:
branches: [ '*' ]
paths-ignore:
- '!.github/coverage.yml'
- 'docs/**'
- '.readthedocs.yml'
- '.git*'
- '*.md'
- 'LICENSE'
jobs:
coveralls:
name: 'for coveralls'
runs-on: ubuntu-latest
steps:
- name: 'install dependencies'
run: |
sudo apt-get install valgrind gcovr
sudo pip install wheel
sudo pip install cpp-coveralls
- name: 'checkout the project'
uses: actions/checkout@v3
- name: 'update submodules'
run: |
git submodule update --init external/rapidjson
git submodule update --init external/draco
- name: 'build and make'
run: |
cmake -B build -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DLIBGLTF_BUILD_COVERAGE=TRUE -DLIBGLTF_BUILD_RUNTEST=TRUE -DLIBGLTF_WITH_GOOGLE_DRACO=TRUE .
cmake --build build --target runtest --config Debug
- name: 'run valgrind and gcovr'
run: |
cd build
valgrind --leak-check=full --show-leak-kinds=all ./../build/source/runtest/runtest
valgrind --leak-check=full --show-leak-kinds=all ./../build/source/runtest/runtest ../resource/nothing.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../build/source/runtest/runtest ../resource/2.0/Monster/glTF/Monster.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../build/source/runtest/runtest ../resource/2.0/Monster/glTF-Binary/Monster.glb
valgrind --leak-check=full --show-leak-kinds=all ./../build/source/runtest/runtest ../resource/2.0/Monster/glTF-Draco/Monster.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../build/source/runtest/runtest ../resource/2.0/Monster/glTF-Embedded/Monster.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../build/source/runtest/runtest ../resource/2.0/Avocado/glTF-pbrSpecularGlossiness/Avocado.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../build/source/runtest/runtest ../resource/2.0/Cameras/glTF/Cameras.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../build/source/runtest/runtest ../resource/2.0/EnvironmentTest/glTF/EnvironmentTest.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../build/source/runtest/runtest ../resource/2.0/EnvironmentTest/glTF-IBL/EnvironmentTest.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../build/source/runtest/runtest ../resource/2.0/MaterialsVariantsShoe/glTF/MaterialsVariantsShoe.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../build/source/runtest/runtest ../resource/2.0/MetalRoughSpheres/glTF/MetalRoughSpheres.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../build/source/runtest/runtest ../resource/2.0/MorphPrimitivesTest/glTF/MorphPrimitivesTest.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../build/source/runtest/runtest ../resource/2.0/MultiUVTest/glTF/MultiUVTest.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../build/source/runtest/runtest ../resource/2.0/Triangle/glTF/三角形.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../build/source/runtest/runtest ../resource/2.0/TriangleWithoutIndices/glTF/TriangleWithoutIndices.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../build/source/runtest/runtest ../resource/2.0/TwoSidedPlane/glTF/TwoSidedPlane.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../build/source/runtest/runtest ../resource/2.0/UnlitTest/glTF/UnlitTest.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../build/source/runtest/runtest ../resource/2.0/VertexColorTest/glTF/VertexColorTest.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../build/source/runtest/runtest ../external/glTF/extensions/2.0/Khronos/KHR_lights_punctual/schema/examples/lights.gltf
gcov source/runtest/CMakeFiles/runtest.dir/runtest.cpp.gcda
gcovr --root=../source/ .
cd ../
export TRAVIS_JOB_ID=${{ github.run_number }}
coveralls --repo-token ${{ secrets.COVERALLS_REPO_TOKEN }} -y .coveralls.yml --gcov-options '\-lp'