@@ -11,7 +11,21 @@ build_gcc10:
1111 # Build with boost
1212 - apt-get install libboost-test-dev -y
1313 - cd build
14- - cmake ../src/ -DCMAKE_BUILD_TYPE=Release -DCPPINCLUDE_BUILD_WITH_TESTS=ON
14+ - cmake .. -DCMAKE_BUILD_TYPE=Release -DCPPINCLUDE_BUILD_WITH_TESTS=ON
15+ - cmake --build . --config Release
16+ # Run tests
17+ - ctest . -C Release
18+
19+ build_gcc8 :
20+ stage : build
21+ image : ubuntu
22+ script :
23+ - apt-get update
24+ - apt-get install cmake gcc-8 g++-8 libboost-test-dev -y
25+ - export CC=gcc-8
26+ - export CXX=g++-8
27+ - cd build
28+ - cmake .. -DCMAKE_BUILD_TYPE=Release -DCPPINCLUDE_BUILD_WITH_TESTS=ON
1529 - cmake --build . --config Release
1630 # Run tests
1731 - ctest . -C Release
@@ -21,15 +35,11 @@ build_gcc7:
2135 image : ubuntu
2236 script :
2337 - apt-get update
24- - apt-get install cmake gcc-7 g++-7 -y
38+ - apt-get install cmake gcc-7 g++-7 libboost-test-dev -y
2539 - export CC=gcc-7
2640 - export CXX=g++-7
27- # Build without boost
28- - ./build.sh
29- # Build with boost
30- - apt-get install libboost-test-dev -y
3141 - cd build
32- - cmake ../src/ -DCMAKE_BUILD_TYPE=Release -DCPPINCLUDE_BUILD_WITH_TESTS=ON
42+ - cmake .. -DCMAKE_BUILD_TYPE=Release -DCPPINCLUDE_BUILD_WITH_TESTS=ON
3343 - cmake --build . --config Release
3444 # Run tests
3545 - ctest . -C Release
@@ -39,15 +49,11 @@ build_clang:
3949 image : ubuntu
4050 script :
4151 - apt-get update
42- - apt-get install cmake clang -y
52+ - apt-get install cmake clang libboost-test-dev -y
4353 - export CC=/usr/bin/clang
4454 - export CXX=/usr/bin/clang++
45- # Build without boost
46- - ./build.sh
47- # Build with boost
48- - apt-get install libboost-test-dev -y
4955 - cd build
50- - cmake ../src/ -DCMAKE_BUILD_TYPE=Release -DCPPINCLUDE_BUILD_WITH_TESTS=ON
56+ - cmake .. -DCMAKE_BUILD_TYPE=Release -DCPPINCLUDE_BUILD_WITH_TESTS=ON
5157 - cmake --build . --config Release
5258 # Run tests
5359 - ctest . -C Release
@@ -68,7 +74,7 @@ build_windows:
6874 # Build with boost
6975 # - vcpkg install boost-test:x64-windows
7076 # - vcpkg install boost-system:x64-windows
71- - cmake ../src/ -G "Visual Studio 16" -DCMAKE_BUILD_TYPE=Release -DCPPINCLUDE_BUILD_WITH_TESTS=ON -DCMAKE_TOOLCHAIN_FILE=C:\vcpkg\scripts\buildsystems\vcpkg.cmake
77+ - cmake .. -G "Visual Studio 16" -DCMAKE_BUILD_TYPE=Release -DCPPINCLUDE_BUILD_WITH_TESTS=ON -DCMAKE_TOOLCHAIN_FILE=C:\vcpkg\scripts\buildsystems\vcpkg.cmake
7278 - cmake --build . --config Release
7379 # Run tests
7480 - ctest . -C Release
@@ -83,7 +89,7 @@ build_vs2017:
8389 # - choco install cmake -y
8490 - $env:PATH="C:\Program Files\CMake\bin;$env:PATH"
8591 - cd build
86- - cmake -G "Visual Studio 15" ../src/ -DCMAKE_BUILD_TYPE=Release
92+ - cmake -G "Visual Studio 15" .. -DCMAKE_BUILD_TYPE=Release
8793 - cmake --build . --config Release
8894
8995build_macos :
@@ -96,11 +102,22 @@ build_macos:
96102 # Build with boost
97103 # brew install boost
98104 - cd build
99- - cmake ../src/ -DCMAKE_BUILD_TYPE=Release -DCPPINCLUDE_BUILD_WITH_TESTS=ON
105+ - cmake .. -DCMAKE_BUILD_TYPE=Release -DCPPINCLUDE_BUILD_WITH_TESTS=ON
100106 - cmake --build . --config Release
101107 # Run tests
102108 - ctest . -C Release
103109
110+ build_arm_linux :
111+ stage : build
112+ tags :
113+ - arm-linux
114+ script :
115+ - cd build
116+ - cmake .. -DCMAKE_BUILD_TYPE=Release -DCPPINCLUDE_BUILD_WITH_TESTS=ON
117+ - cmake --build . --config Release -j4
118+ # Run tests
119+ - ctest . -C Release
120+
104121check_typos :
105122 stage : build
106123 image : ubuntu
@@ -119,9 +136,8 @@ cppcheck:
119136 image : ubuntu
120137 script :
121138 - apt-get update
122- - apt-get install cmake gcc g++ libboost-test-dev -y
123- - apt-get install cppcheck -y
139+ - apt-get install cmake gcc g++ libboost-test-dev cppcheck -y
124140 - cd build
125- - cmake ../src/ -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCPPINCLUDE_BUILD_WITH_TESTS=ON
141+ - cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCPPINCLUDE_BUILD_WITH_TESTS=ON
126142 - cppcheck --project=compile_commands.json --enable=all --suppressions-list=../.cppcheck-suppressions-list --error-exitcode=1 --quiet
127143
0 commit comments