11variables :
22 GIT_SUBMODULE_STRATEGY : " recursive"
3+ ANDROID_NDK : " ~/develop/android-ndk-r18b"
34
45before_script :
56 - git lfs fetch
@@ -10,60 +11,54 @@ after_script:
1011
1112stages :
1213 - check
13- - test
14+ - build
1415
1516checked_by_cppcheck :
1617 stage : check
1718 script :
18- - echo check
19+ - ' cd tools/batch/ && ./update_parser_by_scheme.sh && cd ../../ '
1920 - ' cppcheck . --enable=warning,style,performance,portability --xml-version=2 --error-exitcode=1 -i external/ -i build/ -i tools/'
2021 tags :
22+ - linux
23+ - python
2124 - cppcheck
2225
23- test_win32 :
24- stage : test
26+ compile_windows :
27+ stage : build
2528 script :
29+ - ' cd tools/batch/ && python .\..\..\tools\jsonschematoc11 glTF_2.0_schema.ini && cd ../../'
2630 - ' call "%VS140COMNTOOLS%VsDevCmd.bat"'
2731 - ' if exist build rmdir /s /q build'
2832 - ' if exist output rmdir /s /q output'
29- - ' mkdir build'
30- - ' cd build '
31- - ' cmake -G "Visual Studio 14 2015" ../'
33+ - ' mkdir build && cd build '
34+ - ' mkdir win32 && cd win32 '
35+ - ' cmake -G "Visual Studio 14 2015" -DLIBGLTF_WITH_UNICODE=TRUE ../ ../'
3236 - ' msbuild libgltf.sln /t:Rebuild /p:Configuration="Debug" /p:Platform="Win32"'
33- - ' ..\output\bin\win32\Debug\runtest.exe ..\resource\example-2.0\glTF-BarramundiFish.gltf'
34- - ' ..\output\bin\win32\Debug\runtest.exe ..\resource\example-2.0\glTF-Draco-BarramundiFish.gltf'
35- - ' ..\output\bin\win32\Debug\runtest.exe ..\resource\example-2.0\glTF-pbrSpecularGlossinessBarramundiFish.gltf'
37+ - ' ..\..\ output\bin\win32\Debug\runtest.exe ..\ ..\resource\example-2.0\glTF-BarramundiFish.gltf'
38+ - ' ..\..\ output\bin\win32\Debug\runtest.exe ..\ ..\resource\example-2.0\glTF-Draco-BarramundiFish.gltf'
39+ - ' ..\..\ output\bin\win32\Debug\runtest.exe ..\ ..\resource\example-2.0\glTF-pbrSpecularGlossinessBarramundiFish.gltf'
3640 - ' cd ../'
37- tags :
38- - win32
39- - cmake
40- - vs2015
41-
42- test_win64 :
43- stage : test
44- script :
45- - ' call "%VS140COMNTOOLS%VsDevCmd.bat"'
46- - ' if exist build rmdir /s /q build'
47- - ' if exist output rmdir /s /q output'
48- - ' mkdir build'
49- - ' cd build'
50- - ' cmake -G "Visual Studio 14 2015 Win64" ../'
41+ - ' mkdir win64 && cd win64'
42+ - ' cmake -G "Visual Studio 14 2015 Win64" -DLIBGLTF_WITH_UNICODE=TRUE ../../'
5143 - ' msbuild libgltf.sln /t:Rebuild /p:Configuration="Debug" /p:Platform="x64"'
52- - ' ..\output\bin\win64\Debug\runtest.exe ..\resource\example-2.0\glTF-BarramundiFish.gltf'
53- - ' ..\output\bin\win64\Debug\runtest.exe ..\resource\example-2.0\glTF-Draco-BarramundiFish.gltf'
54- - ' ..\output\bin\win64\Debug\runtest.exe ..\resource\example-2.0\glTF-pbrSpecularGlossinessBarramundiFish.gltf'
44+ - ' ..\..\output\bin\win64\Debug\runtest.exe ..\..\resource\example-2.0\glTF-BarramundiFish.gltf'
45+ - ' ..\..\output\bin\win64\Debug\runtest.exe ..\..\resource\example-2.0\glTF-Draco-BarramundiFish.gltf'
46+ - ' ..\..\output\bin\win64\Debug\runtest.exe ..\..\resource\example-2.0\glTF-pbrSpecularGlossinessBarramundiFish.gltf'
47+ - ' cd ../'
5548 - ' cd ../'
5649 tags :
50+ - win32
5751 - win64
52+ - python
5853 - cmake
5954 - vs2015
6055
61- test_linux :
62- stage : test
56+ compile_linux :
57+ stage : build
6358 script :
64- - ' mkdir build '
65- - ' cd build'
66- - ' cmake -DCMAKE_BUILD_TYPE=Debug -DLIBGLTF_BUILD_GCOV=TRUE -G "Unix Makefiles" ../'
59+ - ' cd tools/batch/ && ./update_parser_by_scheme.sh && cd ../../ '
60+ - ' mkdir build && cd build'
61+ - ' cmake -G "Unix Makefiles" - DCMAKE_BUILD_TYPE=Debug -DLIBGLTF_BUILD_GCOV=TRUE ../'
6762 - ' make'
6863 - ' valgrind --leak-check=full --show-leak-kinds=all ./../output/bin/linux/runtest --coveralls'
6964 - ' valgrind --leak-check=full --show-leak-kinds=all ./../output/bin/linux/runtest --coveralls ../resource/nothing.gltf'
@@ -80,17 +75,17 @@ test_linux:
8075 - ' cd ../'
8176 tags :
8277 - linux
78+ - python
8379 - cmake
8480 - make
8581 - valgrind
86- - gcc
8782 - gcovr
8883
89- test_macos :
90- stage : test
84+ compile_macos :
85+ stage : build
9186 script :
92- - ' mkdir build '
93- - ' cd build'
87+ - ' cd tools/batch/ && ./update_parser_by_scheme.sh && cd ../../ '
88+ - ' mkdir build && cd build'
9489 - ' cmake -G "Unix Makefiles" ../'
9590 - ' make'
9691 - ' ./../output/bin/macos/runtest ../resource/example-2.0/glTF-BarramundiFish.gltf'
@@ -99,6 +94,65 @@ test_macos:
9994 - ' cd ../'
10095 tags :
10196 - macos
97+ - python
10298 - cmake
10399 - make
104100 - gcc
101+
102+ compile_android :
103+ stage : build
104+ script :
105+ - ' cd tools/batch/ && ./update_parser_by_scheme.sh && cd ../../'
106+ - ' mkdir build && cd build'
107+ - ' mkdir armeabi-v7a && cd armeabi-v7a'
108+ - ' cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=/usr/bin/ninja -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake -DANDROID_ABI=armeabi-v7a -DANDROID_NDK=$ANDROID_NDK -DANDROID_NATIVE_API_LEVEL=19 -DANDROID_TOOLCHAIN=clang ../../'
109+ - ' ninja'
110+ - ' cd ../'
111+ - ' mkdir armeabi-v7a-with-neon && cd armeabi-v7a-with-neon'
112+ - ' cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=/usr/bin/ninja -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake -DANDROID_ABI=armeabi-v7a -DANDROID_ARM_NEON=ON -DANDROID_NDK=$ANDROID_NDK -DANDROID_NATIVE_API_LEVEL=19 -DANDROID_TOOLCHAIN=clang ../../'
113+ - ' ninja'
114+ - ' cd ../'
115+ - ' mkdir arm64-v8a && cd arm64-v8a'
116+ - ' cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=/usr/bin/ninja -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake -DANDROID_ABI=arm64-v8a -DANDROID_NDK=$ANDROID_NDK -DANDROID_NATIVE_API_LEVEL=19 -DANDROID_TOOLCHAIN=clang ../../'
117+ - ' ninja'
118+ - ' cd ../'
119+ - ' mkdir x86 && cd x86'
120+ - ' cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=/usr/bin/ninja -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake -DANDROID_ABI=x86 -DANDROID_NDK=$ANDROID_NDK -DANDROID_NATIVE_API_LEVEL=19 -DANDROID_TOOLCHAIN=clang ../../'
121+ - ' ninja'
122+ - ' cd ../'
123+ - ' mkdir x86_64 && cd x86_64'
124+ - ' cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=/usr/bin/ninja -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake -DANDROID_ABI=x86_64 -DANDROID_NDK=$ANDROID_NDK -DANDROID_NATIVE_API_LEVEL=19 -DANDROID_TOOLCHAIN=clang ../../'
125+ - ' ninja'
126+ - ' cd ../'
127+ - ' cd ../'
128+ tags :
129+ - linux
130+ - android
131+ - python
132+ - cmake
133+ - ninja
134+
135+ compile_ios :
136+ stage : build
137+ script :
138+ - ' cd tools/batch/ && ./update_parser_by_scheme.sh && cd ../../'
139+ - ' mkdir build && cd build'
140+ - ' mkdir os && cd os'
141+ - ' cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE=../../external/ios-cmake/toolchain/iOS.cmake -DIOS_PLATFORM=OS -DLIBGLTF_PLATFORM_IOS=TRUE -DLIBGLTF_WITH_UNICODE=TRUE -DLIBGLTF_USING_CHAR16=TRUE ../../'
142+ - ' make libgltf'
143+ - ' cd ../'
144+ - ' mkdir simulator && cd simulator'
145+ - ' cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE=../../external/ios-cmake/toolchain/iOS.cmake -DIOS_PLATFORM=SIMULATOR -DLIBGLTF_PLATFORM_IOS=TRUE -DLIBGLTF_WITH_UNICODE=TRUE -DLIBGLTF_USING_CHAR16=TRUE ../../'
146+ - ' make libgltf'
147+ - ' cd ../'
148+ - ' mkdir watchos && cd watchos'
149+ - ' cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE=../../external/ios-cmake/toolchain/iOS.cmake -DIOS_PLATFORM=WATCHOS -DLIBGLTF_PLATFORM_IOS=TRUE -DLIBGLTF_WITH_UNICODE=TRUE -DLIBGLTF_USING_CHAR16=TRUE ../../'
150+ - ' make libgltf'
151+ - ' cd ../'
152+ - ' cd ../'
153+ tags :
154+ - macos
155+ - ios
156+ - python
157+ - cmake
158+ - make
0 commit comments