Introduces two headless FPCUnit runners under tests/ with 119 tests covering the shared stream, cache, and packet layers, the MUL file library, and the server config, region, account, and landscape bounds logic. Each runner uses its own object output directory so client and server PPUs with colliding unit names cannot pollute each other's builds. Drone now builds and runs both suites before packaging. Found on the way: two product defects fixed in the previous commits.
76 lines
2.7 KiB
YAML
76 lines
2.7 KiB
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
- name: Build
|
|
image: git.aksdb.de/aksdb/centred:builder-221016
|
|
commands:
|
|
- ~/lazarus/lazbuild --lazarusdir=~/lazarus --build-mode="Release.win32" -B Client/CentrED.lpr
|
|
- ~/lazarus/lazbuild --lazarusdir=~/lazarus --build-mode="Release.Linux.x64" -B Client/CentrED.lpr
|
|
- ~/lazarus/lazbuild --lazarusdir=~/lazarus --build-mode="Release.win32" -B Server/cedserver.lpi
|
|
- ~/lazarus/lazbuild --lazarusdir=~/lazarus --build-mode="Release.Linux.x64" -B Server/cedserver.lpi
|
|
|
|
- name: Test
|
|
image: git.aksdb.de/aksdb/centred:builder-221016
|
|
commands:
|
|
- ~/lazarus/lazbuild --lazarusdir=~/lazarus -B tests/unittests.lpi
|
|
- tests/bin/unittests --all --format=plain
|
|
- ~/lazarus/lazbuild --lazarusdir=~/lazarus -B tests/unittests-server.lpi
|
|
- tests/bin/unittests-server --all --format=plain
|
|
- name: Package
|
|
image: git.aksdb.de/aksdb/centred:builder-221016
|
|
commands:
|
|
- mkdir -p dist/client.win32 dist/client.linux.x64 dist/server.win32 dist/server.linux.x64
|
|
- cp Client.bin/nodraw.txt Client.bin/ColorLight.xml dist/client.linux.x64/
|
|
- cp Client.bin/nodraw.txt Client.bin/ColorLight.xml dist/client.win32/
|
|
- cp Client.bin/CentrED.x64 dist/client.linux.x64/CentrED
|
|
- cp Client.bin/CentrED.exe dist/client.win32/CentrED.exe
|
|
- cp Server.bin/cedserver.x64 dist/server.linux.x64/cedserver
|
|
- cp Server.bin/cedserver.exe dist/server.win32/cedserver.exe
|
|
- cd dist/client.win32 && zip ../CentrED.win32.zip *
|
|
- cd ../client.linux.x64 && tar czf ../CentrED.linux.x64.tgz *
|
|
- cd ../server.win32 && zip ../Server.win32.zip *
|
|
- cd ../server.linux.x64 && tar czf ../Server.linux.x64.tgz *
|
|
|
|
- name: Upload Client (win32)
|
|
image: vividboarder/drone-webdav
|
|
settings:
|
|
file: dist/CentrED.win32.zip
|
|
destination: https://aksdb.de/snapshots/CentrED/
|
|
username: centred
|
|
password:
|
|
from_secret: snapshots_password
|
|
|
|
- name: Upload Client (linux x64)
|
|
image: vividboarder/drone-webdav
|
|
settings:
|
|
file: dist/CentrED.linux.x64.tgz
|
|
destination: https://aksdb.de/snapshots/CentrED/
|
|
username: centred
|
|
password:
|
|
from_secret: snapshots_password
|
|
|
|
- name: Upload Server (win32)
|
|
image: vividboarder/drone-webdav
|
|
settings:
|
|
file: dist/Server.win32.zip
|
|
destination: https://aksdb.de/snapshots/CentrED/
|
|
username: centred
|
|
password:
|
|
from_secret: snapshots_password
|
|
|
|
- name: Upload Server (linux x64)
|
|
image: vividboarder/drone-webdav
|
|
settings:
|
|
file: dist/Server.linux.x64.tgz
|
|
destination: https://aksdb.de/snapshots/CentrED/
|
|
username: centred
|
|
password:
|
|
from_secret: snapshots_password
|
|
|
|
trigger:
|
|
branch:
|
|
- master
|