Skip to content

Commit

Permalink
try to coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
alexchicn committed Oct 12, 2020
1 parent 534d417 commit 93b6703
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,31 @@ jobs:
lfs: true
submodules: true
displayName: "Pull all submodules"
- script: |
sudo -E apt-get update
sudo -E apt-get install valgrind gcovr
displayName: "Install dependencies"
- script: |
mkdir build
cd build
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DLIBGLTF_CHARACTOR_ENCODING=UTF8 -DLIBGLTF_BUILD_GCOV=TRUE ../
make
./../output/bin/runtest --coveralls
./../output/bin/runtest --coveralls ../resource/nothing.gltf
./../output/bin/runtest --coveralls ../resource/2.0/Monster/glTF/Monster.gltf
./../output/bin/runtest --coveralls ../resource/2.0/Monster/glTF-Binary/Monster.glb
./../output/bin/runtest --coveralls ../resource/2.0/Monster/glTF-Draco/Monster.gltf
./../output/bin/runtest --coveralls ../resource/2.0/Monster/glTF-Embedded/Monster.gltf
./../output/bin/runtest --coveralls ../resource/2.0/Avocado/glTF-pbrSpecularGlossiness/Avocado.gltf
./../output/bin/runtest --coveralls ../resource/2.0/Cameras/glTF/Cameras.gltf
./../output/bin/runtest --coveralls ../resource/2.0/EnvironmentTest/glTF/EnvironmentTest.gltf
./../output/bin/runtest --coveralls ../resource/2.0/EnvironmentTest/glTF-IBL/EnvironmentTest.gltf
./../output/bin/runtest --coveralls ../resource/2.0/MorphPrimitivesTest/glTF/MorphPrimitivesTest.gltf
./../output/bin/runtest --coveralls ../resource/2.0/Triangle/glTF/Triangle.gltf
./../output/bin/runtest --coveralls ../resource/2.0/TriangleWithoutIndices/glTF/TriangleWithoutIndices.gltf
./../output/bin/runtest --coveralls ../resource/2.0/TwoSidedPlane/glTF/TwoSidedPlane.gltf
./../output/bin/runtest --coveralls ../resource/2.0/UnlitTest/glTF/UnlitTest.gltf
./../output/bin/runtest --coveralls ../resource/2.0/VertexColorTest/glTF/VertexColorTest.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../output/bin/runtest --coveralls
valgrind --leak-check=full --show-leak-kinds=all ./../output/bin/runtest --coveralls ../resource/nothing.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../output/bin/runtest --coveralls ../resource/2.0/Monster/glTF/Monster.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../output/bin/runtest --coveralls ../resource/2.0/Monster/glTF-Binary/Monster.glb
valgrind --leak-check=full --show-leak-kinds=all ./../output/bin/runtest --coveralls ../resource/2.0/Monster/glTF-Draco/Monster.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../output/bin/runtest --coveralls ../resource/2.0/Monster/glTF-Embedded/Monster.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../output/bin/runtest --coveralls ../resource/2.0/Avocado/glTF-pbrSpecularGlossiness/Avocado.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../output/bin/runtest --coveralls ../resource/2.0/Cameras/glTF/Cameras.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../output/bin/runtest --coveralls ../resource/2.0/EnvironmentTest/glTF/EnvironmentTest.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../output/bin/runtest --coveralls ../resource/2.0/EnvironmentTest/glTF-IBL/EnvironmentTest.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../output/bin/runtest --coveralls ../resource/2.0/MorphPrimitivesTest/glTF/MorphPrimitivesTest.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../output/bin/runtest --coveralls ../resource/2.0/Triangle/glTF/Triangle.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../output/bin/runtest --coveralls ../resource/2.0/TriangleWithoutIndices/glTF/TriangleWithoutIndices.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../output/bin/runtest --coveralls ../resource/2.0/TwoSidedPlane/glTF/TwoSidedPlane.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../output/bin/runtest --coveralls ../resource/2.0/UnlitTest/glTF/UnlitTest.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../output/bin/runtest --coveralls ../resource/2.0/VertexColorTest/glTF/VertexColorTest.gltf
gcov source/runtest/CMakeFiles/runtest.dir/runtest.cpp.gcda
gcovr --root=../source/ .
cd ../
Expand Down

0 comments on commit 93b6703

Please sign in to comment.