NOTE: Run source tools/bash_completion.sh to enable Bash auto-complete.
NOTE: If tools/build/build.properties file is missing create it based on build.properties.dist file and fill all missing values.
Part 1
- make sure, that Phing is installed (see https://www.phing.info/)
- run the in-portal classmap:rebuild command
- type in-portal then space and then press TAB two times
- confirm, that phing:run command is auto-completed
- run in-portal command
- confirm, that phing:run command is listed in the output
Part 2
- delete /system/phing_settings.json file if present
- type in-portal phing:run then space and then press TAB two times
- confirm, that all Phing targets are shown in auto-complete results are shown
Part 3
- delete /system/phing_settings.json file if present
- run in-portal phing:run command
- confirm, that user is presented with a choice to select build file
- choose non existing build file
- confirm, that error message is displayed
- choose existing build file by pressing matching number (e.g. 0 or 1)
- confirm, that following is shown:
- location of previously chosen build file
- possible Phing commands with their descriptions
- run in-portal phing:run command
- confirm that:
- user isn't asked for a build file
- location of previously chosen build file is displayed
- possible Phing commands with their descriptions is displayed
Part 4
- run the in-portal phing:run lint command
- confirm, that command does check syntax errors in ALL php files in the project
- run the in-portal phing:run phpcs core/kernel/globals.php command
- confirm, that code style issues were checked only at specified path
- type in-portal phing:run phpcs then space and press TAB two times
- confirm, that folders/files at root of In-Portal directory are shown