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
|
.PHONY: phpunit
|
||||||
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
|
.PHONY: test
|
||||||
tests: phpunit mocha
|
tests: phpunit mocha
|
||||||
|
|
|
||||||
11
flake.nix
11
flake.nix
|
|
@ -29,6 +29,15 @@
|
||||||
LD=$CC ${pkgs.nodejs_20}/bin/node $@
|
LD=$CC ${pkgs.nodejs_20}/bin/node $@
|
||||||
'';
|
'';
|
||||||
inherit (flocken.legacyPackages.${system}) mkDockerManifest;
|
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 {
|
in rec {
|
||||||
packages = rec {
|
packages = rec {
|
||||||
inherit (pkgs) demostf-api demostf-api-docker demostf-parser;
|
inherit (pkgs) demostf-api demostf-api-docker demostf-parser;
|
||||||
|
|
@ -52,7 +61,7 @@
|
||||||
devShells.default = pkgs.mkShell {
|
devShells.default = pkgs.mkShell {
|
||||||
nativeBuildInputs = with pkgs; [
|
nativeBuildInputs = with pkgs; [
|
||||||
gnumake
|
gnumake
|
||||||
php
|
phpPackage
|
||||||
phpPackages.composer
|
phpPackages.composer
|
||||||
npmLd
|
npmLd
|
||||||
nodeLd
|
nodeLd
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue