This commit is contained in:
parent
3104dea918
commit
2ee7da7995
2 changed files with 9 additions and 5 deletions
10
ci/drone.yml
10
ci/drone.yml
|
@ -11,18 +11,22 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- git submodule update --init --recursive
|
- git submodule update --init --recursive
|
||||||
|
|
||||||
- name: Tests
|
- name: Unit Tests
|
||||||
image: ad5001/ubuntu-pyside6-xvfb:noble-6.7.2-latex
|
image: ad5001/ubuntu-pyside6-xvfb:noble-6.7.2-latex
|
||||||
commands:
|
commands:
|
||||||
- ls -la
|
|
||||||
- bash scripts/run-tests.sh
|
- bash scripts/run-tests.sh
|
||||||
|
when:
|
||||||
|
event: [ push, tag ]
|
||||||
|
|
||||||
|
- name: File Tests
|
||||||
|
image: ad5001/ubuntu-pyside6-xvfb:noble-6.7.2-latex
|
||||||
|
commands:
|
||||||
- xvfb-run python3 run.py --test-build --no-check-for-updates
|
- 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/test1.lpf
|
||||||
- xvfb-run python3 run.py --test-build --no-check-for-updates ./ci/test2.lpf
|
- xvfb-run python3 run.py --test-build --no-check-for-updates ./ci/test2.lpf
|
||||||
when:
|
when:
|
||||||
event: [ push, tag ]
|
event: [ push, tag ]
|
||||||
|
|
||||||
|
|
||||||
- name: Windows build
|
- name: Windows build
|
||||||
image: ad5001/ubuntu-pyside6-xvfb-wine:win10-6.7.2
|
image: ad5001/ubuntu-pyside6-xvfb-wine:win10-6.7.2
|
||||||
commands:
|
commands:
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd "$(dirname "$(readlink -f "$0" || realpath "$0")")/.."
|
cd "$(dirname "$(readlink -f "$0" || realpath "$0")")/"
|
||||||
|
|
||||||
# Run python tests
|
# Run python tests
|
||||||
pytest --cov --cov-report term-missing
|
PYTHONPATH="$PYTHONPATH:.." pytest --cov --cov-report term-missing ..
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue