2020-11-01 12:29:14 +00:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
|
|
|
type: docker
|
|
|
|
steps:
|
|
|
|
- name: test-debug-linux
|
|
|
|
image: deukhoofd/linux64builder
|
|
|
|
environment:
|
|
|
|
CC: /usr/bin/clang
|
|
|
|
CXX: /usr/bin/clang++
|
|
|
|
CMAKE_RANLIB: /usr/bin/llvm-ranlib
|
|
|
|
CMAKE_AR: /usr/bin/llvm-ar
|
|
|
|
commands:
|
|
|
|
- cmake -GNinja -DCMAKE_BUILD_TYPE=Debug . -B build-debug -DTESTS=ON
|
|
|
|
- cmake --build build-debug --target all -- -j 4
|
|
|
|
- cd build-debug
|
|
|
|
- ./MalachScriptTests -s --duration=true --force-colors=true
|
|
|
|
- name: test-release-linux
|
|
|
|
image: deukhoofd/linux64builder
|
|
|
|
environment:
|
|
|
|
CC: /usr/bin/clang
|
|
|
|
CXX: /usr/bin/clang++
|
|
|
|
CMAKE_RANLIB: /usr/bin/llvm-ranlib
|
|
|
|
CMAKE_AR: /usr/bin/llvm-ar
|
|
|
|
commands:
|
|
|
|
- cmake -GNinja -DCMAKE_BUILD_TYPE=Release . -B build-release -DTESTS=ON
|
|
|
|
- cmake --build build-release --target all -- -j 4
|
|
|
|
- cd build-debug
|
|
|
|
- ./MalachScriptTests -s --duration=true --force-colors=true
|
2020-11-01 12:30:44 +00:00
|
|
|
- valgrind --tool=memcheck --gen-suppressions=all --leak-check=full --leak-resolution=med --track-origins=yes --vgdb=no --error-exitcode=1 ./MalachScriptTests --test-case-exclude="Throw exception get stack trace"
|
2020-11-01 12:29:14 +00:00
|
|
|
- name: test-release-windows
|
|
|
|
image: deukhoofd/windowsbuilder
|
|
|
|
commands:
|
|
|
|
- update-alternatives --set i686-w64-mingw32-gcc /usr/bin/i686-w64-mingw32-gcc-posix
|
|
|
|
- update-alternatives --set i686-w64-mingw32-g++ /usr/bin/i686-w64-mingw32-g++-posix
|
|
|
|
- update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-posix
|
|
|
|
- update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix
|
2020-11-01 12:47:01 +00:00
|
|
|
- cmake -GNinja -DCMAKE_BUILD_TYPE=Release . -B build-release-windows -D CMAKE_C_COMPILER=/usr/bin/x86_64-w64-mingw32-gcc -D CMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++ -DWINDOWS=ON -DTESTS=ON -DSTATICC=ON
|
2020-11-01 12:29:14 +00:00
|
|
|
- cmake --build build-release-windows --target all -- -j 4
|
|
|
|
- export WINEARCH=win64
|
|
|
|
- wine build-release-windows/MalachScriptTests.exe -s --duration=true --force-colors=true
|
|
|
|
- name: style-check
|
|
|
|
image: deukhoofd/linux64builder
|
|
|
|
failure: ignore
|
|
|
|
commands:
|
|
|
|
- run-clang-format.py -r src/ tests/
|