Commit graph

37 commits

Author SHA1 Message Date
Gunter Labes
8c581eee90
Avoid rewriting the same file multiple times
Also process some more extensions that current source files use.
2024-08-19 08:55:08 +02:00
Gunter Labes
56fc63e238
Remove superfluous double sort and use POSIX conform regex 2024-04-23 09:21:23 +02:00
P. J. McDermott
2993757315 Add a CI check for missing images in WML macros
This detects image errors such as issue #8432.

Example output:

    data/multiplayer/scenarios/2p_Aethermaw.cfg:134: missing image: units/undead/shadow-s-attack-1.png
    data/multiplayer/scenarios/2p_Aethermaw.cfg:135: missing image: units/undead/shadow-n-attack-2.png
    data/multiplayer/scenarios/2p_Aethermaw.cfg:147: missing image: units/undead/shadow-n-3.png
    data/multiplayer/scenarios/2p_Aethermaw.cfg:149: missing image: units/undead/shadow-s-attack-4.png
    data/multiplayer/scenarios/2p_Aethermaw.cfg:196: missing image: units/human-loyalists/spearman-attack-se-10.png
    data/multiplayer/scenarios/2p_Aethermaw.cfg:197: missing image: units/human-loyalists/spearman-attack-s-6.png
    data/multiplayer/scenarios/2p_Aethermaw.cfg:198: missing image: units/human-loyalists/spearman-attack-se-9.png
    data/multiplayer/scenarios/2p_Aethermaw.cfg:203: missing image: units/human-loyalists/general-idle-5.png
2024-03-26 13:23:22 -05:00
pentarctagon
71438010f6 add trailing newline to files 2024-02-15 22:51:26 -06:00
pentarctagon
34c8753878 forgot to remove this too 2024-01-17 08:56:46 -06:00
pentarctagon
453dbc685f Enable stricter checks for debug builds.
Use _GLIBCXX_DEBUG, _GLIBCXX_DEBUG_PEDANTIC, and _GLIBCXX_ASSERTIONS for the debug Ubuntu build.
2024-01-17 00:38:11 -06:00
Gunter Labes
64f702e96d
Move {join,host}.lua to a better place 2023-08-03 22:06:27 +02:00
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
Gunter Labes
667af05a19
Separate wesnoth independent checks out into their own job 2023-05-31 15:57:40 +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
Gunter Labes
031b4a70e4
Avoid descending into modules dir 2023-04-21 00:15:11 +02:00
Steve Cotton
49ebbb9709 Make fix_whitespace complain about mixing tabs and spaces
Ensures that files either use tabs for indentation or spaces for indentation,
but don't switch between the two within the same file.

This doesn't fix the whitespace, it's a simple check to flag it up
on the assumption that it's better to use an editor or code formatter
to clean up the file.

Elsewhere in the CI we use the luacheck tool - while that can detect
mixing tabs and spaces in a single line's indent, it doesn't check for
inconsistent indentation within a file.
2023-02-05 02:22:53 +01: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
Tommy
18f0de5d6e Boost tests: tee to error.log for SDL init failure check. 2022-06-11 03:38:58 +12: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
65102111e7 CI: Display boost unit test error output while running, not after. 2022-06-10 16:45:38 +12:00
Tommy
fcf7ca3b28 CI: Report which boost test suite is being executed. 2022-06-10 16:45:38 +12:00
Tommy
fed8f6cbcb CI: Colour some failure messages, and make test sections stand out. 2022-06-10 16:45:38 +12:00
Tommy
80c914cd81 CI: Enable coloured output for gdb backtraces. 2022-06-10 16:45:38 +12:00
Pentarctagon
f5dfdd71b0
Remove CI caching - hasn't worked for a while. 2022-05-07 22:46:05 -05:00
Pentarctagon
f44acd68c2 Add build support for webp images. 2022-03-12 13:47:46 -06:00
Pentarctagon
5155a74f4f Make lua a submodule.
No changes required to the lua source anymore.
2022-03-09 15:01:37 -06:00
Jonathan-Kelly
6acb7ec7bd
Winds of Fate (Drake campaign): add to mainline (#5831) 2022-01-16 04:06:12 -05:00
Pentarctagon
254716e41e Expand lua whitespace check. 2021-11-28 14:26:02 -06: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
Pentarctagon
9dde4d5f6d
sed doesn't work quite the same on macOS. 2021-05-02 17:09:10 -05:00
Pentarctagon
73c4e19ea2
Make whitespace fixing a script. 2021-05-02 16:40:40 -05: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
551aa31390 Add a CI check for doxygen issues. 2020-12-31 23:59:28 -06:00
Pentarctagon
8942efe5fd
Move/rename various CI scripts to no longer refer to travis. 2020-12-10 14:11:17 -06:00