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 3083aee commit 1830480
Showing 1 changed file with 40 additions and 5 deletions.
45 changes: 40 additions & 5 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,47 @@
jobs:

- job: coverage
pool:
vmImage: 'ubuntu-latest'
steps:
- checkout: self
lfs: true
submodules: true
displayName: "Pull all submodules"
- script: |
mkdir build
cd build
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DLIBGLTF_CHARACTOR_ENCODING=UTF8 -DLIBGLTF_BUILD_GCOV=TRUE ../
make
valgrind --leak-check=full --show-leak-kinds=all ./../output/bin/linux/runtest --coveralls
valgrind --leak-check=full --show-leak-kinds=all ./../output/bin/linux/runtest --coveralls ../resource/nothing.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../output/bin/linux/runtest --coveralls ../resource/2.0/Monster/glTF/Monster.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../output/bin/linux/runtest --coveralls ../resource/2.0/Monster/glTF-Binary/Monster.glb
valgrind --leak-check=full --show-leak-kinds=all ./../output/bin/linux/runtest --coveralls ../resource/2.0/Monster/glTF-Draco/Monster.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../output/bin/linux/runtest --coveralls ../resource/2.0/Monster/glTF-Embedded/Monster.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../output/bin/linux/runtest --coveralls ../resource/2.0/Avocado/glTF-pbrSpecularGlossiness/Avocado.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../output/bin/linux/runtest --coveralls ../resource/2.0/Cameras/glTF/Cameras.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../output/bin/linux/runtest --coveralls ../resource/2.0/EnvironmentTest/glTF/EnvironmentTest.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../output/bin/linux/runtest --coveralls ../resource/2.0/EnvironmentTest/glTF-IBL/EnvironmentTest.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../output/bin/linux/runtest --coveralls ../resource/2.0/MorphPrimitivesTest/glTF/MorphPrimitivesTest.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../output/bin/linux/runtest --coveralls ../resource/2.0/Triangle/glTF/Triangle.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../output/bin/linux/runtest --coveralls ../resource/2.0/TriangleWithoutIndices/glTF/TriangleWithoutIndices.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../output/bin/linux/runtest --coveralls ../resource/2.0/TwoSidedPlane/glTF/TwoSidedPlane.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../output/bin/linux/runtest --coveralls ../resource/2.0/UnlitTest/glTF/UnlitTest.gltf
valgrind --leak-check=full --show-leak-kinds=all ./../output/bin/linux/runtest --coveralls ../resource/2.0/VertexColorTest/glTF/VertexColorTest.gltf
gcov source/runtest/CMakeFiles/runtest.dir/runtest.cpp.gcda
gcovr --root=../source/ .
cd ../
displayName: "Compile and Coverage"
- job: linux
pool:
vmImage: 'ubuntu-latest'
steps:
- checkout: self
lfs: true
submodules: true
displayName: "Pull all repos"
displayName: "Pull all submodules"
- script: |
mkdir build
cd build
Expand All @@ -22,7 +57,7 @@ jobs:
- checkout: self
lfs: true
submodules: true
displayName: "Pull all repos"
displayName: "Pull all submodules"
- script: |
mkdir build
cd build
Expand All @@ -38,7 +73,7 @@ jobs:
- checkout: self
lfs: true
submodules: true
displayName: "Pull all repos"
displayName: "Pull all submodules"
- script: |
mkdir build
cd build
Expand All @@ -54,7 +89,7 @@ jobs:
- checkout: self
lfs: true
submodules: true
displayName: "Pull all repos"
displayName: "Pull all submodules"
- script: |
mkdir build
cd build
Expand All @@ -77,7 +112,7 @@ jobs:
- checkout: self
lfs: true
submodules: true
displayName: "Pull all repos"
displayName: "Pull all submodules"
- script: |
mkdir build
cd build
Expand Down

0 comments on commit 1830480

Please sign in to comment.