Skip to content

Commit bb8b2f5

Browse files
authored
Merge pull request #35 from Calinou/add-test-project-export
Add test project export for CI
2 parents c6746aa + 75700f5 commit bb8b2f5

File tree

84 files changed

+2236
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+2236
-0
lines changed

tests/test_project/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*.dblite
2+
3+
# Ignore the submodule so we don't add it to version control.
4+
# We clone it on CI when needed instead.
5+
addons/test_extension/src/godot-cpp

tests/test_project/LICENSE.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# License for third-party files
2+
3+
## `polyhaven/*`
4+
5+
Copyright (c) Poly Haven
6+
7+
- Upstream: https://polyhaven.com
8+
- License: CC0-1.0
9+
10+
## `fonts/librequake_conchars.webp`
11+
12+
- Upstream: https://github.com/lavenderdotpet/LibreQuake
13+
- License: BSD-3-Clause

tests/test_project/SConstruct

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env python
2+
3+
# ruff: noqa: F821
4+
5+
# This file is for building as a Godot GDExtension.
6+
SConscript("addons/test_extension/SConstruct")
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
shader_type spatial;
2+
3+
global uniform vec3 offset;
4+
instance uniform vec3 emission : source_color = vec3(1.0, 0.0, 0.0);
5+
uniform vec3 color : source_color = vec3(1.0, 0.0, 0.0);
6+
7+
void vertex() {
8+
VERTEX.xyz += offset;
9+
}
10+
11+
void fragment() {
12+
ALBEDO = color.rgb;
13+
EMISSION = emission.rgb;
14+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
uid://cqkjq1u1jfe1c
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[gd_resource type="VisualShader" load_steps=2 format=3 uid="uid://barg7ns55yag2"]
2+
3+
[sub_resource type="VisualShaderNodeColorParameter" id="VisualShaderNodeColorParameter_bwiop"]
4+
output_port_for_preview = 0
5+
parameter_name = "ColorParameter"
6+
default_value_enabled = true
7+
default_value = Color(1, 0, 0, 1)
8+
9+
[resource]
10+
nodes/fragment/2/node = SubResource("VisualShaderNodeColorParameter_bwiop")
11+
nodes/fragment/2/position = Vector2(20, 260)
12+
nodes/fragment/connections = PackedInt32Array(2, 0, 0, 0)
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
[preset.0]
2+
3+
name="Linux"
4+
platform="Linux"
5+
runnable=true
6+
dedicated_server=false
7+
custom_features=""
8+
export_filter="all_resources"
9+
include_filter=""
10+
exclude_filter=""
11+
export_path=""
12+
patches=PackedStringArray()
13+
encryption_include_filters=""
14+
encryption_exclude_filters=""
15+
seed=0
16+
encrypt_pck=false
17+
encrypt_directory=false
18+
script_export_mode=2
19+
20+
[preset.0.options]
21+
22+
custom_template/debug=""
23+
custom_template/release=""
24+
debug/export_console_wrapper=1
25+
binary_format/embed_pck=false
26+
texture_format/s3tc_bptc=true
27+
texture_format/etc2_astc=true
28+
shader_baker/enabled=true
29+
binary_format/architecture="x86_64"
30+
ssh_remote_deploy/enabled=false
31+
ssh_remote_deploy/host="user@host_ip"
32+
ssh_remote_deploy/port="22"
33+
ssh_remote_deploy/extra_args_ssh=""
34+
ssh_remote_deploy/extra_args_scp=""
35+
ssh_remote_deploy/run_script="#!/usr/bin/env bash
36+
export DISPLAY=:0
37+
unzip -o -q \"{temp_dir}/{archive_name}\" -d \"{temp_dir}\"
38+
\"{temp_dir}/{exe_name}\" {cmd_args}"
39+
ssh_remote_deploy/cleanup_script="#!/usr/bin/env bash
40+
kill $(pgrep -x -f \"{temp_dir}/{exe_name} {cmd_args}\")
41+
rm -rf \"{temp_dir}\""
42+
43+
[preset.1]
44+
45+
name="Linux Server"
46+
platform="Linux"
47+
runnable=false
48+
dedicated_server=true
49+
custom_features=""
50+
export_filter="customized"
51+
customized_files={
52+
"res://": "strip"
53+
}
54+
include_filter=""
55+
exclude_filter=""
56+
export_path=""
57+
patches=PackedStringArray()
58+
encryption_include_filters=""
59+
encryption_exclude_filters=""
60+
seed=0
61+
encrypt_pck=false
62+
encrypt_directory=false
63+
script_export_mode=2
64+
65+
[preset.1.options]
66+
67+
custom_template/debug=""
68+
custom_template/release=""
69+
debug/export_console_wrapper=1
70+
binary_format/embed_pck=false
71+
texture_format/s3tc_bptc=true
72+
texture_format/etc2_astc=true
73+
shader_baker/enabled=true
74+
binary_format/architecture="x86_64"
75+
ssh_remote_deploy/enabled=false
76+
ssh_remote_deploy/host="user@host_ip"
77+
ssh_remote_deploy/port="22"
78+
ssh_remote_deploy/extra_args_ssh=""
79+
ssh_remote_deploy/extra_args_scp=""
80+
ssh_remote_deploy/run_script="#!/usr/bin/env bash
81+
export DISPLAY=:0
82+
unzip -o -q \"{temp_dir}/{archive_name}\" -d \"{temp_dir}\"
83+
\"{temp_dir}/{exe_name}\" {cmd_args}"
84+
ssh_remote_deploy/cleanup_script="#!/usr/bin/env bash
85+
kill $(pgrep -x -f \"{temp_dir}/{exe_name} {cmd_args}\")
86+
rm -rf \"{temp_dir}\""
1.22 KB
Loading
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
[remap]
2+
3+
importer="font_data_image"
4+
type="FontFile"
5+
uid="uid://xqvnherns475"
6+
path="res://.godot/imported/librequake_conchars.webp-b49c596b50ab310e0a6edef9d4972538.fontdata"
7+
8+
[deps]
9+
10+
source_file="res://fonts/librequake_conchars.webp"
11+
dest_files=["res://.godot/imported/librequake_conchars.webp-b49c596b50ab310e0a6edef9d4972538.fontdata"]
12+
13+
[params]
14+
15+
character_ranges=PackedStringArray("0-127")
16+
kerning_pairs=PackedStringArray()
17+
columns=16
18+
rows=8
19+
image_margin=Rect2i(0, 0, 0, 0)
20+
character_margin=Rect2i(1, 0, 1, 0)
21+
ascent=0
22+
descent=0
23+
fallbacks=[]
24+
compress=true
25+
scaling_mode=1
45.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)