Initialize Godot imports in quality gate
Quality Gate / Quality Gate (push) Successful in 2m55s

This commit is contained in:
chindit committed 2026-10-06 08:43:39 +02:00
1 parent 22235a9c2d
commit 912123087f
2 files changed
+15 -4

No files matched your search

@@ -177,12 +177,12 @@ func _textured_material(
return material return material
func _load_texture(resource_path: String) -> ImageTexture: func _load_texture(resource_path: String) -> Texture2D:
var image := Image.load_from_file(resource_path) var texture := ResourceLoader.load(resource_path, "Texture2D") as Texture2D
if image == null or image.is_empty(): if texture == null:
push_error("Unable to load cockpit texture: %s" % resource_path) push_error("Unable to load cockpit texture: %s" % resource_path)
return null return null
return ImageTexture.create_from_image(image) return texture
func _dedicated_gauge_material(resource_path: String) -> StandardMaterial3D: func _dedicated_gauge_material(resource_path: String) -> StandardMaterial3D:
+11
View File
@@ -48,6 +48,17 @@ bash -n scripts/check_architecture.sh scripts/quality_gate.sh
printf 'Quality gate: architecture\n' printf 'Quality gate: architecture\n'
bash scripts/check_architecture.sh bash scripts/check_architecture.sh
printf 'Quality gate: project import\n'
if ! "$GODOT_EXECUTABLE" --headless \
--log-file "$QUALITY_TEMP_DIRECTORY/import.log" \
--path . \
--import \
>"$QUALITY_TEMP_DIRECTORY/import-console.log" 2>&1; then
printf 'Quality gate: project import failed\n'
cat "$QUALITY_TEMP_DIRECTORY/import-console.log"
exit 1
fi
printf 'Quality gate: resource loading\n' printf 'Quality gate: resource loading\n'
"$GODOT_EXECUTABLE" --headless \ "$GODOT_EXECUTABLE" --headless \
--log-file "$QUALITY_TEMP_DIRECTORY/load.log" \ --log-file "$QUALITY_TEMP_DIRECTORY/load.log" \