mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-03 09:54:17 +02:00
add xdebug to flake
This commit is contained in:
parent
764277968e
commit
7818fdd6a5
2 changed files with 12 additions and 2 deletions
3
Makefile
3
Makefile
|
|
@ -16,7 +16,8 @@ mocha: node_modules
|
|||
|
||||
.PHONY: phpunit
|
||||
phpunit:
|
||||
DB_PORT=5434 DB_TYPE=pgsql DB_HOST=localhost DB_USERNAME=postgres DB_USERNAME=postgres DB_PASSWORD=test DB_DATABASE=postgres ./vendor/bin/phpunit test
|
||||
XDEBUG_CONFIG="idekey=PHPSTORM" XDEBUG_MODE=debug DB_PORT=5434 DB_TYPE=pgsql DB_HOST=localhost DB_USERNAME=postgres DB_USERNAME=postgres DB_PASSWORD=test DB_DATABASE=postgres \
|
||||
./vendor/bin/phpunit test
|
||||
|
||||
.PHONY: test
|
||||
tests: phpunit mocha
|
||||
|
|
|
|||
11
flake.nix
11
flake.nix
|
|
@ -29,6 +29,15 @@
|
|||
LD=$CC ${pkgs.nodejs_20}/bin/node $@
|
||||
'';
|
||||
inherit (flocken.legacyPackages.${system}) mkDockerManifest;
|
||||
|
||||
phpVersion = "php82";
|
||||
phpPackages = pkgs."${phpVersion}Packages";
|
||||
phpPackage = pkgs.${phpVersion}.buildEnv {
|
||||
extraConfig = "memory_limit = 2G";
|
||||
extensions = ({ enabled, all }: enabled ++ (with all; [
|
||||
xdebug smbclient
|
||||
]));
|
||||
};
|
||||
in rec {
|
||||
packages = rec {
|
||||
inherit (pkgs) demostf-api demostf-api-docker demostf-parser;
|
||||
|
|
@ -52,7 +61,7 @@
|
|||
devShells.default = pkgs.mkShell {
|
||||
nativeBuildInputs = with pkgs; [
|
||||
gnumake
|
||||
php
|
||||
phpPackage
|
||||
phpPackages.composer
|
||||
npmLd
|
||||
nodeLd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue