build: Check sassc errors when generating stylesheet
We currently just call sassc, but don't check its return value. That means as long as sassc is available, the script (and therefore the newly added dist CI job) will succeed. Make sure we fail on failure. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/190>
This commit is contained in:
@@ -10,4 +10,4 @@ distroot = os.environ.get('MESON_DIST_ROOT')
|
||||
stylesheet_path = PurePath('data/gnome-classic.css')
|
||||
src = PurePath(sourceroot, stylesheet_path.with_suffix('.scss'))
|
||||
dst = PurePath(distroot, stylesheet_path)
|
||||
subprocess.call(['sassc', '-a', src, dst])
|
||||
subprocess.run(['sassc', '-a', src, dst], check=True)
|
||||
|
||||
Reference in New Issue
Block a user