16 Commits

Author SHA1 Message Date
Gunter Labes
1fb83c3c7a
Fix setting default TERM value in bash 2023-06-10 01:31:54 +02:00
Gunter Labes
370aa403ae
Export TERM so tput actually sees it 2023-06-01 15:48:00 +02:00
Gunter Labes
c013fea7ef
Make non-matching globs expand to nothing
Fixup for 2548e3b.
2023-05-31 20:23:11 +02:00
Gunter Labes
2548e3b680
Avoid word splitting and pathname expansion (ab)use 2023-05-31 19:01:48 +02:00
Celtic Minstrel
3ba31d532f Add new schemas to validate fonts.cfg and language.cfg 2023-05-02 21:04:41 -04:00
Celtic Minstrel
b223dcbbdd Minor fix to schema validation script 2023-05-02 21:04:41 -04:00
Celtic Minstrel
69ba3e0273 Make schema validation script validate Lua dialogs in gui/ subdirectories 2023-05-02 21:04:41 -04:00
Celtic Minstrel
3cfe0c338d Minor improvement to the schema validation script 2023-05-02 21:04:41 -04:00
Pentarctagon
d1465a9eb9
Add basic achievements functionality. (#7237)
* Add basic achievements functionality.

This reads the mainline achievements.cfg and then all the achievements of each installed add-on.

This is intentionally handled separately from other WML loading so that:
a) All achievements and their status are able to be displayed on the main menu right after Wesnoth starts and regardless of which add-ons are active.
b) Add-ons can add additional achievements to other content, whether UMC or mainline. For example, a modification that adds more achievements for mainline campaigns.

Marking something as achieved is handled by the new [set_achieved] tag and whether an achievement has been completed can be checked via [has_achievement].

There is no attempt to prevent people from manually editing which achievements they've accomplished.

NOTE: These are *not* in any way related to Steam achievements!
2023-01-21 10:32:45 -06:00
Gunter Labes
a63e6c47c2
Color more schema validation messages
Also simplified the implementation a bit and made it POSIX conform since it didn't really need any bash features.
2022-06-10 15:39:22 +02:00
Tommy
fed8f6cbcb CI: Colour some failure messages, and make test sections stand out. 2022-06-10 16:45:38 +12:00
Jonathan-Kelly
6acb7ec7bd
Winds of Fate (Drake campaign): add to mainline (#5831) 2022-01-16 04:06:12 -05:00
Celtic Minstrel
0c42cdc038
Enable translation mark validation by the schema (#5800)
- The t_string type is now a schema built-in type and no longer attempts a regex match.
- You can also specify that non-t_string types may be optionally-translatable; this case supports a regex match on the string (but note that the translation mark is not part of the match).
- Error messages involving keys with very large values ( > 128 characters) will now truncate the value.
- To account for occasional cases where the schema is intentionally violated, the --validate command-line option now automatically defines the SCHEMA_VALIDATION preprocessor define.

A key validates as type t_string if one of the following is true:
- The key is not present
- The key has at least one segment with a translation mark
- The key is blank (an empty string)

Any type other than t_string is not allowed to be translatable by default, unless you specify allow_translatable=yes in the [type] tag.

An optionally-translatable string could also be defined as a union of t_string and some other type.
2021-06-14 23:59:52 -04:00
Steve Cotton
93de411d2f Fixup WC2 validation (combination of 41b2b0b with e47b759)
The combination of disabling and validating WC2 meant that the build failed,
so add another #def that will enable it for validation.
2021-02-21 18:34:40 +01:00
Celtic Minstrel
41b2b0b42b WC: Include in the CI schema validation
There may not be much to validate, but we may as well validate what's there.
2021-02-20 19:54:19 -05:00
Pentarctagon
8942efe5fd
Move/rename various CI scripts to no longer refer to travis. 2020-12-10 14:11:17 -06:00