Commit Graph

242 Commits

Author SHA1 Message Date
Jelle Meeus
5bc512f75c chore(Docker): Update dev container to ubuntu24.04 (#21044) 2025-01-19 12:46:28 +01:00
Grimdhex
ffae375f73 fix(Apps/Codestyle): rewrite semi-colon check (#21027) 2024-12-24 12:39:00 +01:00
Kitzunu
d5fac96a20 refactor(CI/Codestyle): Move the SQL check to python (#21002) 2024-12-22 16:50:32 +01:00
Kitzunu
2c20c9463a feat(CI/Codestyle): Check for tabs (#20998) 2024-12-22 00:43:23 +01:00
Kitzunu
d2b88bdc1e feat(CI/Codestyle); Check for double semicolons (#20996) 2024-12-21 22:19:49 +01:00
Kitzunu
ceefd89a06 feat(CI/Codestyle): check for curly brackets before/after if/else statements (#20977)
* feat(CI/Codestyle): check for braces after if/else statements

* right need to edit a cpp file to trigger cpp check

* Revert "right need to edit a cpp file to trigger cpp check"

This reverts commit 2e34d8c52f35216549107a3476e79e79ea2ae077.

* fix codestyle in cpp

* Update oculus.cpp

* Update codestyle.py

* Update codestyle.py

* Update codestyle.py

* Update codestyle.py
2024-12-19 21:14:58 +01:00
sudlud
0a454b08fc fix(apps/DatabaseExporter): fix utf-8 encoding for sql export (#20951) 2024-12-18 10:33:53 +01:00
Kitzunu
3a20433827 feat(DB): New DB exporter and versioning tools for DB squashes (#20920) 2024-12-16 16:13:05 +01:00
Jelle Meeus
4f23dbbb03 refactor(Apps/Startup): replace 'set logging on` command with 'set logging enabled on' (#20778)
refactor: replace deprecated 'set logging on'
2024-12-01 21:29:35 +01:00
Mike Delago
6161d9969b fix(CI/SQL import): don't use octal (#20449) 2024-11-05 16:40:41 +01:00
Mike Delago
f1b629035f fix(CI/Import SQL): reference previous pending update in header (#20219) 2024-10-15 15:06:43 -04:00
Mike Delago
3ef1a4a22a fix(CI): simplify ci-pending-sql.sh and make it safer (#20209)
* apps: ci: ci-pending-sql.sh: simplify

* ensure proper file header is used
2024-10-14 20:42:04 -04:00
Grimdhex
729cf72f0d chore(Apps/Codestyle): add a new check for if statements (#20073)
* chore(Apps/CodeStyle): add a new check for if statements

* update

* Update spell_priest.cpp

* Update codestyle.py
2024-09-28 18:35:35 +02:00
Anton Popovichenko
36a8653c83 fix(CI/macOS): Fix macOS CI dependency installation by updating macOS version. (#19997)
* fix(CI/MacOS): Fix MacOS CI dependency installation.

* Try to use macos 14 version

* Remove brew cleanup and z3 dependency

* Adjust readline lib discovery

* Update macos supported version in SECURITY.md
2024-09-21 11:37:55 -03:00
sudlud
2e17b32508 fix(apps/installer): fix Debian 12 build with mysql (#20003) 2024-09-20 23:20:33 +02:00
Ben Carter
6e5cd04591 fix(docker): Modules SQL do not get updated or populated for docker set ups (#19870)
* Added modules to dbimport so sql cab accessed by loader

* updated dbimport tools config option to enable module sql to be updated and populated

* Updated casting around GetOption and changed default to all
2024-09-06 12:37:00 -03:00
Benjamin Jackson
1edac37ac3 refactor(Core): Make more use of helpers. (#19835)
* Init.

* Reword.

* Update codestyle script.

Co-Authored-By: Kitzunu <24550914+Kitzunu@users.noreply.github.com>

* Add gameobject type ID check, reorder checks.

* Add helper/codestyle check for unit type.

* `IsUnit()` -> `IsCreature()`

* Add `IsUnit()` method.

* Use type mask.

https: //github.com/TrinityCore/TrinityCore/commit/cc71da35b5dc74abf71f8691161525a23d870bb5
Co-Authored-By: Giacomo Pozzoni <giacomopoz@gmail.com>
Co-Authored-By: Ovahlord <18347559+Ovahlord@users.noreply.github.com>

* Replace instances of `isType` with `IsUnit`.

---------

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
Co-authored-by: Ovahlord <18347559+Ovahlord@users.noreply.github.com>
2024-09-03 14:41:31 -03:00
Grimdhex
221dbd3fdb chore(Apps/Codestyle): add new codestyle checks for pointers and range loops (#19841)
* chore(Apps/Codestyle): add new codestyle checks for pointers and range loops

* revert a typo
2024-09-03 13:02:38 -03:00
Kitzunu
de2bcbdabf refactor(Core/Misc): Acore::StringFormat to fmt format (#19838)
refactor(Core/Utilities): Acore::StringFormat to fmt format

* closes https://github.com/azerothcore/azerothcore-wotlk/issues/10356
2024-09-03 07:59:37 -03:00
Kitzunu
5d31b9f98f refactor(Core/Item): Add helpers (#19828) 2024-08-31 19:38:50 -03:00
Grimdhex
574ef5203a chore(Apps/CodeStyle): rewrite Ci-codestyle in python (#19714)
* initial version

* port most current checks

* allow to specify for each checks the exclude files

* Update _ci-codestyle.py

* fix trailing whitespace check and the error_handler logic

* optimize the script to parse all files only one time

* restore the error handling after that all checks are passed

* fix double blank lines at the end of the file

* improve outputs and the codestyle

* .

* update github workflow to the new script

*drop the old ci-codestyle
*move and rename the python script

* use getcwd instead abspath to define src_directory where the script is launch

* test for github workflow

* few cleanup

* fix the logic with the result output

* remove GetTypeId from the output result

* restore GetTypeId() check

* fix reviews

* remove GetTypeId check for gameobjects

*not currently fixed in the core

* fix type hint for file parameters

* remove the test file
2024-08-27 06:19:13 -03:00
sudlud
4ed1815de6 fix(apps/installer): update for Ubuntu 22.04/24.04 with mysql 8.4 LTS (#19737) 2024-08-26 17:29:12 +02:00
sudlud
d4aca0bca1 fix(apps/installer): update for Debian 12 using mysql (#19649)
* fix(apps/installer): update for Debian 11 and 12 using mysql

* drop Debian 11 due to OpenSSL 1.1.1 beeing deprecated already
2024-08-24 20:29:32 +02:00
Mike Delago
af1a6f3521 apps(docker): Fix Warnings in Dockerfile (#19537) 2024-08-18 06:17:30 +02:00
Marcus Schommer
a691ad3f4d chore(APPS/installer): Detection of BSD* OS (#19285)
Installer output is wrong for BSD*.
"acore.sh install-deps" says "This platform is not supported"
should be "BSD is not supported yet"
2024-08-17 20:27:36 +02:00
Anton Popovichenko
3c4086a5a0 fix(CI/MacOS): Fix macOS mysql setup. (#19634)
* fix(CI/MacOS): Try to fix macOS mysql setup.

* Update ci-compile.sh

* More debug code

* Mooooore debug

* Moooooorreee

* Moooooooooooorereerererer

* m o r e debug

* more debug

* more

* More debug

* 9.0.1.reinstall??? we already had mysql?

* debug

* Debug

* Are we happy now?

* No? And what about now?!

* Adn now?

* Yes, we are happy 😎
2024-08-16 05:07:41 -03:00
Andrew
1565758da4 Revert "chore(Script/Misc): cleanup" (#19627)
Revert "chore(Script/Misc): cleanup (#19619)"

This reverts commit 7ff8f72397.
2024-08-15 05:43:11 +02:00
Kitzunu
7ff8f72397 chore(Script/Misc): cleanup (#19619)
* chore(Script/Misc): cleanup

* more cleanup

* cleanup
2024-08-14 16:29:50 -03:00
dweipert-3138720606
1c5ee47151 fix docker warning about "FromAsCasing" (#19368)
Co-authored-by: Daniel Weipert <git@mail.dweipert.de>
2024-07-29 08:31:51 -04:00
Mike Delago
0e1afaa768 debloat(apps): remove unneeded script (#19466)
remove unneeded script
2024-07-23 20:27:36 -04:00
Mike Delago
45145fed48 fix(Docker): Check write access for config dir (#18238) 2024-05-18 19:12:22 +02:00
Anton Popovichenko
9616433b66 fix(CI/MacOS): Fix MacOS dependency installation (#18507)
Fix MacOS CI/CD
2024-03-10 16:52:03 -03:00
Mike Delago
e282f6caaa Fix(Docker): Add missing dollar sign (#18314) 2024-02-13 10:34:29 -05:00
Kitzunu
65e25bd7b9 fix(CI): Maybe baby this will solve our problemos (#17889)
* Because BREW and MAC OSX suck a**

* Update core-build-nopch.yml

* if mac dont fix now. I might just quit

* maybe I can bring this back now :pog:
2023-11-29 08:37:48 -03:00
Kitzunu
4a25ac665d chore(CI): Make some changes (#17861)
* chore(CI): Make some changes. Less CI's maybe better...

* pendingsql

* FORK TEST - TO BE REVERTED

* changes

* test

* fix

* Revert "FORK TEST - TO BE REVERTED"

This reverts commit 875bc281c5a355cce2ddd8015484e256dbc185cf.

* rename workflow

* rename workflow

* rename workflow

* rename workflow

* I argue windows don't need dry runs

* maybe mac wants to be alive. who knows. When do we drop mac support really...?
2023-11-26 17:27:40 +01:00
Mike Delago
6e752c8720 fix(Docker): Tweak entrypoint permissions (#17698)
* fix(Docker): Fix entrypoint permissions

* use entrypoint.sh as an argument to bash

* attempt to use more specified filepaths
2023-11-14 17:36:27 +01:00
Kitzunu
649dc84fea fix(ci): macos (#17681)
* fix(ci): macos

* Update osx.sh
2023-11-11 20:06:25 -03:00
Mike Delago
ac30d8f6fc fix(CI): Ensure targeted stage for docker is specified in CI (#17545) 2023-10-20 20:39:34 -03:00
Mike Delago
c4dc20a814 refactor(Docker): remove prod container distinction (#17419)
* refactor(Docker): remove prod containers

* workflows: use buildx

* properly set tags

* comment in Dockerfile

* set docker build context

* minor CI changes

* CI: docker build args shouldnt have quotes

* CI: using matrix and caching is too much work

* CI: I hate yaml

* CI: It was a typo

* CI: extra build removed

* CI: appease the linter

* fixup! CI: appease the linter

* fixup! CI: appease the linter

* apps: docker: remove extraneous files
2023-10-15 17:47:09 +02:00
Mike Delago
619f7297f9 refactor(apps): remove docker image prune in dashboard (#17405)
refactor(apps): remove docker image prune in dash
2023-10-07 23:18:40 +02:00
Kitzunu
5d128d38ea chore(CI): Update deps for Windows and Mac builds (#17252)
* chore(CI): Update deps for Windows and Mac builds

* Update windows.sh

* Update windows.sh
2023-09-15 02:32:52 +02:00
Mike Delago
2c81ccaea4 fix(apps/Docker): Missing arg for build:prod (#17231) 2023-09-10 21:24:36 +02:00
Mike Delago
c43e1b8c0c refactor(Apps/Dashboard): Remove Deno as a dependency to the dashboard (#16934)
* remove deno as a dependency

* use the ACORE_VERSION env var

* I forgot client-data

* accidentally removed too much

* docker-cmd: extraneous parallel flag

* typo

* remove docker image prune -af

the `docker image prune` removes the containers we just build.

* fetch everything in the beginning
2023-09-10 01:12:47 +02:00
Mike Delago
23c5e990b6 fix(Apps/Docker): ensure conf files always exist (#17071) 2023-08-25 22:02:21 +02:00
Kitzunu
12456b5496 refactor(Misc/Conf): DBErrors is now Errors (#17053)
* refactor(Misc/Conf): DBErrors is now StartupErrors

* pt2

* Update ci-error-check.sh

* Update ci-error-check.sh
2023-08-22 12:08:53 +02:00
Mike Delago
f241a6e352 feat(Apps/Docker): Use Env Vars for docker configuration (#17040)
* feat(docker): Use Env Vars for docker configuration

use env vars for docker

* simplify docker-compose.yaml
2023-08-20 17:52:38 +02:00
Mike Delago
3033b2da4e chore(apps): remove deprecated db_assembler and erroneous .gitmodules (#17039)
* chore(Contrib): remove deprecated db_assembler

* chore(repo): Remove erroneous gitmodule
2023-08-19 22:13:22 +02:00
Mike Delago
741403e157 fix(Apps/Docker): adduser/addgroup commands in dockerfile (#14914)
Fix useradds in dockerfile
2023-08-12 21:01:49 +02:00
Mike Delago
4f87cf96d8 fix(Apps/Docker): Git version resolution in docker build (#16379)
fix git for docker build
2023-08-12 17:48:17 +02:00
Mike Delago
e7b3f5e78a chore(CI): fix ci-pending.sh script for linting SQL (#16913)
* fix Checks for pending sql

* remove strings in general

* Update apps/ci/ci-pending.sh

---------

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2023-08-06 11:43:51 +02:00