2021-07-11 14:18:01 +00:00
|
|
|
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
|
2021-07-11 17:35:12 +00:00
|
|
|
|
2024-09-26 01:24:57 +00:00
|
|
|
- name: Build
|
|
|
|
image: node:18-bookworm
|
|
|
|
commands:
|
|
|
|
- npm install
|
2024-09-26 01:26:41 +00:00
|
|
|
- apt update
|
2024-09-26 01:24:57 +00:00
|
|
|
- apt install -y qtchooser qttools5-dev-tools
|
|
|
|
# Start building
|
|
|
|
- cd LogarithmPlotter/i18n && bash release.sh && cd ../..
|
|
|
|
- npm run build
|
|
|
|
when:
|
|
|
|
event: [ push, tag ]
|
|
|
|
|
2024-09-18 21:11:44 +00:00
|
|
|
- name: Unit Tests
|
2024-09-19 18:21:04 +00:00
|
|
|
image: ad5001/ubuntu-pyside-xvfb:linux-6-latest-latex
|
2024-09-18 21:03:44 +00:00
|
|
|
commands:
|
2024-09-19 19:33:29 +00:00
|
|
|
- apt install -y qtchooser qttools5-dev-tools
|
2024-09-19 19:57:41 +00:00
|
|
|
- cd LogarithmPlotter/i18n && bash release.sh && cd ../..
|
2024-09-18 21:20:00 +00:00
|
|
|
- xvfb-run bash scripts/run-tests.sh
|
2024-09-18 21:11:44 +00:00
|
|
|
when:
|
|
|
|
event: [ push, tag ]
|
|
|
|
|
|
|
|
- name: File Tests
|
2024-09-19 18:21:04 +00:00
|
|
|
image: ad5001/ubuntu-pyside-xvfb:linux-6-latest-latex
|
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 ]
|
2021-07-11 14:18:01 +00:00
|
|
|
|
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:
|
|
|
|
- bash scripts/build-wine.sh
|
|
|
|
- bash scripts/package-wine.sh
|
|
|
|
when:
|
|
|
|
event: [ push, tag ]
|
2023-05-22 05:29:15 +00:00
|
|
|
|