LogarithmPlotter/ci/drone.yml

45 lines
1.1 KiB
YAML
Raw Normal View History

kind: pipeline
name: build-test
platform:
os: linux
arch: amd64
steps:
2024-09-18 21:03:44 +00:00
- name: submodules
image: alpine/git
commands:
- git submodule update --init --recursive
2024-09-26 01:24:57 +00:00
- name: Build
image: ad5001/ubuntu-pyside-xvfb:linux-6-latest-latex-node
2024-09-26 01:24:57 +00:00
commands:
2024-09-29 23:39:59 +00:00
- cd common && npm install && cd ..
2024-09-29 22:23:39 +00:00
- bash scripts/build.sh
2024-09-26 01:24:57 +00:00
2024-09-18 21:11:44 +00:00
- name: Unit Tests
image: ad5001/ubuntu-pyside-xvfb:linux-6-latest-latex-node
2024-09-18 21:03:44 +00:00
commands:
2024-09-29 23:39:59 +00:00
- cd common && npm install -D && cd ..
2024-10-01 19:50:10 +00:00
- xvfb-run bash scripts/run-tests.sh --no-rebuild
2024-09-18 21:11:44 +00:00
when:
event: [ push, tag ]
- name: File Tests
image: ad5001/ubuntu-pyside-xvfb:linux-6-latest-latex-node
2024-09-18 21:11:44 +00:00
commands:
2024-09-18 21:03:44 +00:00
- 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 ]
2024-09-18 21:03:44 +00:00
- name: Windows build
2024-09-19 18:21:04 +00:00
image: ad5001/ubuntu-pyside-xvfb:wine-6-latest
2024-09-18 21:03:44 +00:00
commands:
2024-10-01 19:50:10 +00:00
- bash scripts/build-wine.sh --no-rebuild
2024-09-18 21:03:44 +00:00
- bash scripts/package-wine.sh
when:
event: [ push, tag ]