2021-07-11 14:18:01 +00:00
|
|
|
kind: pipeline
|
|
|
|
name: build-test
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
2021-07-11 17:35:12 +00:00
|
|
|
- name: submodules
|
|
|
|
image: alpine/git
|
|
|
|
commands:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
|
2021-07-11 14:18:01 +00:00
|
|
|
- name: Linux test
|
|
|
|
image: ad5001/ubuntu-pyside2-xvfb:hirsute-5.15.2
|
|
|
|
commands:
|
2022-03-06 22:36:10 +00:00
|
|
|
- apt install texlive-latex-base dvipng
|
2022-01-26 18:51:36 +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
|
2021-07-11 14:18:01 +00:00
|
|
|
when:
|
|
|
|
event: [ push, tag ]
|
|
|
|
|
|
|
|
- name: Windows test
|
|
|
|
image: ad5001/ubuntu-pyside2-xvfb-wine:win7-5.15.2
|
|
|
|
commands:
|
|
|
|
- # For some reason, launching GUI apps with wine, even with xvfb-run, fails.
|
2022-01-26 18:53:22 +00:00
|
|
|
- xvfb-run python run.py --test-build --no-check-for-updates
|
|
|
|
- xvfb-run python run.py --test-build --no-check-for-updates ./ci/test1.lpf
|
|
|
|
- xvfb-run python run.py --test-build --no-check-for-updates ./ci/test2.lpf
|
2021-07-11 14:18:01 +00:00
|
|
|
when:
|
|
|
|
event: [ push, tag ]
|
|
|
|
|
|
|
|
|
|
|
|
- name: Linux packaging
|
|
|
|
image: ad5001/accountfree-build-img:hirsute-5.15.2
|
|
|
|
commands:
|
2022-01-26 18:51:36 +00:00
|
|
|
- bash scripts/package-linux.sh
|
2021-07-11 14:18:01 +00:00
|
|
|
when:
|
|
|
|
event: [ push, tag ]
|
|
|
|
|
|
|
|
|
|
|
|
- name: Windows building
|
|
|
|
image: ad5001/accountfree-build-img-wine:win7-5.15.2
|
|
|
|
commands:
|
2022-01-26 18:51:36 +00:00
|
|
|
- bash scripts/build-wine.sh
|
|
|
|
- bash scripts/package-wine.sh
|
2021-07-11 14:18:01 +00:00
|
|
|
when:
|
|
|
|
event: [ push, tag ]
|
|
|
|
|