|
1 | 1 | # Release Notes
|
2 | 2 |
|
| 3 | +## [v1.2.0](https://github.com/Thavarshan/phpvm/compare/v1.1.0...v1.2.0) - 2025-02-15 |
| 4 | + |
| 5 | +### Added |
| 6 | + |
| 7 | +- **GitHub Actions CI/CD Integration:** Added workflows for running automated tests and verifying PHPVM functionality on macOS and Linux. |
| 8 | +- **Linux Compatibility:** Implemented Homebrew mock support to allow testing on both macOS and Linux environments. |
| 9 | +- **Extended Test Suite:** Improved BATS test coverage to handle different system environments and dependencies. |
| 10 | + |
| 11 | +### Changed |
| 12 | + |
| 13 | +- **Improved Homebrew Detection:** The script now properly checks for Homebrew availability and handles missing installations more gracefully. |
| 14 | +- **Refactored Test Setup:** The `setup` function in `test_phpvm.bats` now ensures correct sourcing of `phpvm.sh` and mocks Homebrew on Linux. |
| 15 | +- **Better Error Messages:** Adjusted error outputs for clarity when Homebrew or PHP versions are unavailable. |
| 16 | + |
| 17 | +### Fixed |
| 18 | + |
| 19 | +- **Fixed Ubuntu Compatibility Issues:** The tests no longer fail due to missing Homebrew; instead, they mock Homebrew behavior on Linux. |
| 20 | +- **Resolved Test Failures:** The `install_php`, `use_php_version`, and `auto_switch_php_version` tests now properly execute across different OS platforms. |
| 21 | +- **Prevented Test Cleanup Failures:** The `teardown` function now ensures `.phpvmrc` and other temporary files are removed only if they exist. |
| 22 | + |
3 | 23 | ## [v1.1.0](https://github.com/Thavarshan/phpvm/compare/v1.0.0...v1.1.0) - 2025-02-09
|
4 | 24 |
|
5 | 25 | ### Added
|
| 26 | + |
6 | 27 | - Added comprehensive error handling to the main `phpvm` script for robust operations.
|
7 | 28 | - Added checks for command availability (e.g., `curl`) in the installation script.
|
8 | 29 | - Added a suite of unit tests using BATS for automated testing of core functionalities.
|
9 | 30 | - Added clear and informative, color-coded terminal messages for user interactions.
|
10 | 31 |
|
11 | 32 | ### Changed
|
| 33 | + |
12 | 34 | - Enhanced the installation script to safely modify user shell profiles and avoid duplicate entries.
|
13 | 35 | - Updated the main `phpvm` script to use strict mode (`set -euo pipefail`) for improved reliability.
|
14 | 36 | - Improved overall error reporting to capture and relay issues during directory creation, downloading, and setting file permissions.
|
15 | 37 |
|
16 | 38 | ### Fixed
|
| 39 | + |
17 | 40 | - Fixed various shellcheck warnings such as:
|
18 | 41 | - SC2034 (unused variables)
|
19 | 42 | - SC2086 (unquoted variables)
|
|
24 | 47 | ## [v1.0.0](https://github.com/Thavarshan/phpvm/compare/v0.0.1...v1.0.0) - 2025-02-04
|
25 | 48 |
|
26 | 49 | ### Added
|
| 50 | + |
27 | 51 | - Auto-switching PHP versions based on `.phpvmrc`.
|
28 | 52 | - Improved support for macOS Homebrew installations.
|
29 | 53 | - Enhanced installation script for easy setup using `curl` or `wget`.
|
30 | 54 | - More robust error handling and output formatting.
|
31 | 55 | - Extended compatibility with `bash` and `zsh` shells.
|
32 | 56 |
|
33 | 57 | ### Fixed
|
| 58 | + |
34 | 59 | - Resolved issues with Homebrew PHP detection on macOS.
|
35 | 60 | - Prevented terminal crashes due to incorrect sourcing in shell startup scripts.
|
36 | 61 | - Improved handling of missing PHP versions.
|
|
0 commit comments