LogarithmPlotter/ci/drone.yml
Ad5001 4a1b333198
All checks were successful
continuous-integration/drone/push Build is passing
Updating APT before installing in CI
2024-09-26 03:26:41 +02:00

51 lines
1.3 KiB
YAML

kind: pipeline
name: build-test
platform:
os: linux
arch: amd64
steps:
- name: submodules
image: alpine/git
commands:
- git submodule update --init --recursive
- name: Build
image: node:18-bookworm
commands:
- npm install
- apt update
- apt install -y qtchooser qttools5-dev-tools
# Start building
- cd LogarithmPlotter/i18n && bash release.sh && cd ../..
- npm run build
when:
event: [ push, tag ]
- name: Unit Tests
image: ad5001/ubuntu-pyside-xvfb:linux-6-latest-latex
commands:
- apt install -y qtchooser qttools5-dev-tools
- cd LogarithmPlotter/i18n && bash release.sh && cd ../..
- xvfb-run bash scripts/run-tests.sh
when:
event: [ push, tag ]
- name: File Tests
image: ad5001/ubuntu-pyside-xvfb:linux-6-latest-latex
commands:
- xvfb-run python3 run.py --test-build --no-check-for-updates
- xvfb-run python3 run.py --test-build --no-check-for-updates ./ci/test1.lpf
- xvfb-run python3 run.py --test-build --no-check-for-updates ./ci/test2.lpf
when:
event: [ push, tag ]
- name: Windows build
image: ad5001/ubuntu-pyside-xvfb:wine-6-latest
commands:
- bash scripts/build-wine.sh
- bash scripts/package-wine.sh
when:
event: [ push, tag ]