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 - 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" - 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 - 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 - 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/