From f969dcf84b19f9d562efa3aad61219172b6e35e7 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sun, 1 Nov 2020 13:29:14 +0100 Subject: [PATCH] Setup CI. --- .drone.yml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..7beb9c5 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,46 @@ +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 ./ArbutilsTests --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 + - 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/ \ No newline at end of file