Преглед изворни кода

fix(devcontainer): try adjusting scripts/setup for xdebug VSCode extension

rugk пре 5 месеци
родитељ
комит
dd69cb89af
2 измењених фајлова са 6 додато и 2 уклоњено
  1. 1 1
      .devcontainer/postCreateCommand.sh
  2. 5 1
      .vscode/settings.json

+ 1 - 1
.devcontainer/postCreateCommand.sh

@@ -5,7 +5,7 @@ export PATH="$PATH:$PWD/vendor/bin"
 echo 'export PATH="$PATH:$HOME/.composer/vendor/bin"' >> ~/.bashrc
 echo 'export PATH="$PATH:$PWD/vendor/bin"' >> ~/.bashrc
 ln -s ./conf.sample.php cfg/conf.php
-composer install --no-dev --optimize-autoloader
+composer install --optimize-autoloader
 
 # for PHP unit testing
 composer require --global google/cloud-storage

+ 5 - 1
.vscode/settings.json

@@ -1,5 +1,9 @@
 {
     "files.associations": {
         "**/cfg/conf*.php": "ini"
-    }
+    },
+    "phpunit.phpunit": "${workspaceFolder}/vendor/bin/phpunit",
+    "phpunit.args": [
+        "--configuration '${workspaceFolder}/tst/phpunit.xml'"
+    ]
 }