Commit graph

2410 commits

Author SHA1 Message Date
Pentarctagon
18db5fab1c
Add luacheck to docker image. 2021-11-22 18:10:18 -06:00
Pentarctagon
1f6bf4c203 Upload artifacts that could be used for releases.
Also don't upload things anymore that aren't being used.
2021-11-18 12:32:17 -06:00
loonycyborg
8cdfcae202 Made get_dlls.py get dlls for wesnothd too 2021-10-26 17:20:39 +03:00
Iris Morelle
8b4c50d46c
pofix: Update for the current 1.16 announcement errata
[ci skip]
2021-10-23 00:31:39 -03:00
loonycyborg
33ae3e9b53
docker: Compile own openssl for steamrt builds
Steam's scout image provides way too old openssl library version which doesn't
doesn't properly handle recent expiry of one of root Let's Encrypt
certs.
2021-10-16 18:59:39 +03:00
loonycyborg
5bcf5068b4
Update steamrt docker builds 2021-10-15 03:45:44 +03:00
Pentarctagon
9070953903 Install certs so CI can download scons over https. 2021-10-05 11:32:22 -05:00
loonycyborg
ca90694141
Add script to upload windows version of wesnoth onto Itch.io taking data from existing installer 2021-09-26 21:16:32 +03:00
Pentarctagon
a6c61385f6
Use enum in copyright update script. 2021-07-31 12:55:31 -05:00
Pentarctagon
144d7667f8
Add a script to automatically update the copyright notice in source files. 2021-07-29 11:43:50 -05:00
Iris Morelle
99d70b57e1
pofix: 1.14 announcement rules for 1.14.17
[ci skip]
2021-06-22 15:53:55 -04:00
Celtic Minstrel
f539deea1b Remove the wesnoth-test textdomain 2021-06-19 12:10:02 -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
e7e3ae76d8 Refactor the woptipng script
If a tool made the image bigger, the debug message was the same as if the tool
had made the image's pixel change. Clarify that into two separate messages.

As each verify_images() call checks that the file became smaller, the removed
print statement would never be reached.
2021-05-12 16:04:32 +02:00
Steve Cotton
13bc062975 Remove the old PNG optimisation script
A Python version was added in b3fe980d70, the
main reason for removing the old one is that it's inconsistent to have two
tools where one does almost (but not quite) the same as the other.

Both versions check that the old and new images look the same. However, if any
tool changed the pixels' values then old script would discard the changes from
the other tools too. The new script checks the image after each tool is run, so
that the optimisations from the other tools can still be kept.

The indexed2rgb.sh script had a call to utils/wesnoth-optipng. It's deleted
instead of updated because both wesnoth-optipng itself (since 17c242a9f) and
the new woptipng both do what indexed2rgb.sh did (they all run ImageMagick with
option "png:color-type=6").
2021-05-07 12:01:59 +02: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
Pentarctagon
ed92ba75fe Add version to connection_history. 2021-04-22 14:56:16 -05:00
Pentarctagon
14107b3ae6 Use the database to store and retrieve login history for the searchlog command.
This allows the history to be persisted across restarts, whereas right now it's lost.
2021-04-16 12:42:35 -05:00
Steve Cotton
2e2f551199 git-subtree like tool for exporting campaigns
As with git-subtree, it creates reproducible SHA1 ids for the new branch, the
history of An Orcish Incursion will appear as:

* master branch (pre-removal) 2637115bd92334444f1e03d9387266a92ae478da
* master branch (removal) 3d4a4b06 and 8deac9bb
* 1.14 branch 6b5ccb5fd12e7bb4795b25d1aa10d6f0c88a7490

Wesnoth's po/<textdomain> folder is copied into the subtree as "translations".
If there already was a "translations" in the subtree, it's renamed to
"umc_translations_dir".

The campaign will still need a few fixups for paths in _main.cfg, and
the scenarios' map_data or map_file attributes. The map_file paths
were made more portable in a5a1fec2, but this was after AOI's removal.

Many thanks to Lord Knightmare for porting AOI to 1.15 without this script,
which provided a reference to check the script against. LK's 1.0.0 matches
this script's output from the 1.14 branch, including the fix in b9f93cf that
was applied to 1.14 after the removal in master, and with the rank (but not the
"Rookie") from cc01ccae.
2021-03-25 18:30:18 +01:00
Iris Morelle
59baba0eb3 pofix: 1.14 announcement rules for 1.14.16
[ci skip]
2021-03-22 19:01:28 -03:00
Iris Morelle
1c40a0271e ci: Remove dependencies on SDL_ttf and FriBidi 2021-03-13 13:51:47 -03:00
Pentarctagon
edef0c5f33 Add database insert for addon information. 2021-03-12 16:12:09 -06:00
Pentarctagon
9b2429c393 Add validation for the feedback topic id. 2021-03-12 16:12:09 -06:00
Pentarctagon
9b7a958e9a
Add a new query to get faction side count. 2021-03-12 00:27:06 -06:00
Pentarctagon
6ca9f0969e
Remove Ubuntu 18.04 CI job.
As of the TLS PR, supporting Ubuntu 18.04 will not be possible due to Boost 1.65 not supporting perfect forwarding in ssl stream's constructor.
2021-03-10 13:49:56 -06:00
Pentarctagon
cb5f45cae6
Remove left over paramiko usage from dockerfiles. 2021-03-07 16:49:22 -06:00
Celtic Minstrel
c645856974
Add a Wesnoth MSVC visualization file for config and t_string (#5571)
* Add a Wesnoth natvis file

The change to t_string is just to make the textdomain map visible to the debugger, since it can't see variables with static linkage.

* Update tstring.hpp

* Update tstring.cpp
2021-02-27 01:08:31 -05:00
Pentarctagon
fa53539f37
Rename query output column 2021-02-26 13:59:30 -06: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
97bca421e7
Update flatpak docker image to newer runtime.
Also change the base image to Ubuntu 20.04 and remove the PPA providing a newer flatpak version.
2021-02-17 16:49:33 -06:00
loonycyborg
0ffe194f71 Update flatpak runtime version. This fixes #5552 2021-02-17 21:35:57 +03:00
Pentarctagon
ef7d69b953 Use gcc-9 in the Scout runtime instead of gcc-5.
The gcc-9 shipped with the Scout runtime forces the use of -static-libstdc++ which is what allows this to work. However, LTO is not yet able to be enabled since as of right now it simply crashes immediately with `free(): invalid pointer`.
2021-01-16 15:43:59 -06:00
Pentarctagon
5ee08c80fb Add support for asynchronously querying a player's game history for display on the client. 2021-01-16 12:48:07 -06:00
Pentarctagon
6389c1e34e
Convert custom doc comments to doxygen.
NOTE: This does not do any validation of the existing documentation for whether it's correct or complete.  That would be the job of someone who actually knows the code being documented.  This is simply a format conversion to have everything now use the doxygen format.
2021-01-16 01:17:31 -06:00
Pentarctagon
0697f31cd3
Apparently I forgot to remove the column comment after ending up not using it. 2021-01-04 18:49:31 -06:00
Pentarctagon
96243ad778 Store content names for game history viewer. 2021-01-02 23:45:45 -06:00
Pentarctagon
551aa31390 Add a CI check for doxygen issues. 2020-12-31 23:59:28 -06:00
Iris Morelle
75df6f1eb1 pofix: 1.14 announcement rules for 1.14.15
[ci skip]
2020-12-20 03:15:25 -03:00
Pentarctagon
882d7abf55
Missed one. 2020-12-10 14:48:40 -06:00
Pentarctagon
8942efe5fd
Move/rename various CI scripts to no longer refer to travis. 2020-12-10 14:11:17 -06:00
Pentarctagon
515feabb66
Add boost coroutine and context. 2020-12-10 11:09:06 -06:00
Pentarctagon
2f3fd3eee0
Add windows jobs to github actions.
Move .travis.yml since all jobs have been moved to github actions.

Also remove caching from github actions for now since it doesn't work as expected.
2020-11-23 03:37:45 -06:00
Pentarctagon
e43a0d8848
Update query scripts for new table. 2020-10-27 17:07:56 -05:00
Pentarctagon
d741365325 Move the game content info (scenario/era/modifications) into their own table.
Fixes #5066
2020-10-26 09:51:21 -05:00
Celtic Minstrel
ccc9cccb4e Add schema self-validation to the Travis schema validation task 2020-10-24 13:26:18 -04:00
Pentarctagon
2b1d88356f Add travis check for WML indentation correctness. 2020-10-20 14:57:26 -05:00
Pentarctagon
5de7939384
Update steam runtime image. 2020-10-15 15:44:12 -05:00
Pentarctagon
467e4312b9 Add support for executing async queries.
Making the logging correctly handle multiple threads writing to the same stream at the same time will be handled separately later.
2020-10-14 19:38:49 -05:00