mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-06-11 00:47:22 +00:00
Allow theme identity test without local preview script
preview.sh is an ignored developer helper and is not present in CI checkouts. Keep validating it when available locally, but in CI check that it remains ignored instead of failing on a missing file.
This commit is contained in:
parent
3004c34f61
commit
30e3006e3f
1 changed files with 15 additions and 10 deletions
|
|
@ -111,22 +111,27 @@ require_line lookandfeel/contents/logout/Logout.qml 'plasma_lookandfeel_org\.shi
|
|||
require_line lookandfeel/Messages.sh 'plasma_lookandfeel_org\.shift\.mobile\.pot' \
|
||||
"look-and-feel Messages.sh must generate the Shift translation domain"
|
||||
|
||||
require_line preview.sh 'PLASMA_THEME=shift-light' \
|
||||
if [[ -f preview.sh ]]; then
|
||||
require_line preview.sh 'PLASMA_THEME=shift-light' \
|
||||
"preview light mode must select the Shift light Plasma desktop theme"
|
||||
require_line preview.sh 'PLASMA_THEME=shift-dark' \
|
||||
require_line preview.sh 'PLASMA_THEME=shift-dark' \
|
||||
"preview dark mode must select the Shift dark Plasma desktop theme"
|
||||
reject_line preview.sh 'PLASMA_THEME=breeze-' \
|
||||
reject_line preview.sh 'PLASMA_THEME=breeze-' \
|
||||
"preview must not select Breeze Plasma desktop themes"
|
||||
require_line preview.sh 'Shift does not ship a QQC2 style plugin yet' \
|
||||
require_line preview.sh 'Shift does not ship a QQC2 style plugin yet' \
|
||||
"preview must document the Breeze QQC2 fallback"
|
||||
reject_line preview.sh 'QT_QUICK_CONTROLS_STYLE=org\.shift|QT_QUICK_CONTROLS_STYLE=SHIFT|QT_QUICK_CONTROLS_STYLE=Shift' \
|
||||
"preview must not reference a non-existent Shift QQC2 style"
|
||||
else
|
||||
require_line .gitignore '^preview[.]sh$' \
|
||||
"preview.sh is a local developer script and must remain ignored when absent from CI"
|
||||
fi
|
||||
require_line bin/startplasmamobile.in 'Shift does not ship a QQC2 style plugin yet' \
|
||||
"runtime launcher must document the Breeze QQC2 fallback"
|
||||
require_line HACKING.md 'Shift does not ship a QQC2 style plugin yet' \
|
||||
"HACKING.md must document the Breeze QQC2 fallback"
|
||||
require_line .kde-ci.yml 'plasma/qqc2-breeze-style' \
|
||||
"CI must keep the Breeze QQC2 runtime dependency until Shift ships a QQC2 style"
|
||||
reject_line preview.sh 'QT_QUICK_CONTROLS_STYLE=org\.shift|QT_QUICK_CONTROLS_STYLE=SHIFT|QT_QUICK_CONTROLS_STYLE=Shift' \
|
||||
"preview must not reference a non-existent Shift QQC2 style"
|
||||
reject_line bin/startplasmamobile.in 'QT_QUICK_CONTROLS_STYLE=org\.shift|QT_QUICK_CONTROLS_STYLE=SHIFT|QT_QUICK_CONTROLS_STYLE=Shift' \
|
||||
"runtime launcher must not reference a non-existent Shift QQC2 style"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue