PkmnLib/.drone.yml

65 lines
2.7 KiB
YAML
Raw Normal View History

2020-09-30 16:55:02 +00:00
---
2019-12-31 11:10:30 +00:00
kind: pipeline
name: default
type: docker
steps:
2021-10-22 13:11:52 +00:00
- name: submodules
image: alpine/git
commands:
- git submodule update --init --recursive
2019-12-31 11:10:30 +00:00
- name: test-debug-linux
image: deukhoofd/linux64builder
2019-12-31 11:26:12 +00:00
environment:
CC: clang
CXX: clang++
2019-12-31 11:10:30 +00:00
commands:
- cmake -GNinja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ . -B build-debug -DSTATICC=ON -DPKMNLIB_TESTS=ON -DSHARED=ON
2019-12-31 11:10:30 +00:00
- cmake --build build-debug --target all -- -j 4
- build-debug/pkmnLibTests -s --duration=true --force-colors=true
2019-12-31 11:10:30 +00:00
- name: test-release-linux
image: deukhoofd/linux64builder
2019-12-31 11:26:12 +00:00
environment:
CC: clang
CXX: clang++
2019-12-31 11:10:30 +00:00
commands:
- cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ . -B build-release -DSTATICC=ON -DPKMNLIB_TESTS=ON -DSHARED=ON
2019-12-31 11:10:30 +00:00
- cmake --build build-release --target all -- -j 4
- build-release/pkmnLibTests -s --duration=true --force-colors=true
- name: valgrind-release-linux
image: deukhoofd/linux64builder
2020-04-28 13:37:18 +00:00
volumes:
- name: conan-data
path: /root/.conan/data
commands:
2022-03-22 17:36:29 +00:00
- cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ . -B build-release_valgrind -DSTATICC=ON -DPKMNLIB_TESTS=ON -DSHARED=ON -DSANITIZER_TESTS=OFF
- cmake --build build-release_valgrind --target all -- -j 4
- valgrind --tool=memcheck --gen-suppressions=all --leak-check=full --leak-resolution=med --track-origins=yes --vgdb=no --error-exitcode=1 build-release_valgrind/pkmnLibTests
2020-04-28 13:30:50 +00:00
- name: style-check
2020-04-28 13:32:32 +00:00
image: deukhoofd/linux64builder
failure: ignore
commands:
2020-07-06 06:30:29 +00:00
- run-clang-format.py -r src/ CInterface/ tests/ --color=always
2019-12-31 11:10:30 +00:00
- name: test-release-windows
image: deukhoofd/windowsbuilder
environment:
CHOST: x86_64-w64-mingw32
AR: x86_64-w64-mingw32-ar
AS: x86_64-w64-mingw32-as
RANLIB: x86_64-w64-mingw32-ranlib
CC: x86_64-w64-mingw32-gcc
CXX: x86_64-w64-mingw32-g++
STRIP: x86_64-w64-mingw32-strip
RC: x86_64-w64-mingw32-windres
commands:
- 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 -DSTATICC=ON -DPKMNLIB_TESTS=ON -DSHARED=ON
2019-12-31 11:10:30 +00:00
- cmake --build build-release-windows --target all -- -j 4
2021-04-12 20:30:43 +00:00
- find . -name '*.dll*' -exec cp {} . \;
2019-12-31 11:10:30 +00:00
- export WINEARCH=win64
2021-09-30 20:48:44 +00:00
- wine64 build-release-windows/pkmnLibTests.exe -s --duration=true --force-colors=true
2020-09-30 16:55:02 +00:00
---
kind: signature
2022-03-22 17:36:29 +00:00
hmac: 00bf200ae2970259d235942a21fccb4eabe2ec54aed9946e76476403eac45d9a
2020-09-30 16:55:02 +00:00
...