Skip to content

Commit 30eae62

Browse files
committed
Update CHANGELOG.md and README.md for v1.2.0 release: add CI/CD integration, improve Linux compatibility, and enhance test suite coverage.
1 parent c459a71 commit 30eae62

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,42 @@
11
# Release Notes
22

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+
323
## [v1.1.0](https://github.com/Thavarshan/phpvm/compare/v1.0.0...v1.1.0) - 2025-02-09
424

525
### Added
26+
627
- Added comprehensive error handling to the main `phpvm` script for robust operations.
728
- Added checks for command availability (e.g., `curl`) in the installation script.
829
- Added a suite of unit tests using BATS for automated testing of core functionalities.
930
- Added clear and informative, color-coded terminal messages for user interactions.
1031

1132
### Changed
33+
1234
- Enhanced the installation script to safely modify user shell profiles and avoid duplicate entries.
1335
- Updated the main `phpvm` script to use strict mode (`set -euo pipefail`) for improved reliability.
1436
- Improved overall error reporting to capture and relay issues during directory creation, downloading, and setting file permissions.
1537

1638
### Fixed
39+
1740
- Fixed various shellcheck warnings such as:
1841
- SC2034 (unused variables)
1942
- SC2086 (unquoted variables)
@@ -24,13 +47,15 @@
2447
## [v1.0.0](https://github.com/Thavarshan/phpvm/compare/v0.0.1...v1.0.0) - 2025-02-04
2548

2649
### Added
50+
2751
- Auto-switching PHP versions based on `.phpvmrc`.
2852
- Improved support for macOS Homebrew installations.
2953
- Enhanced installation script for easy setup using `curl` or `wget`.
3054
- More robust error handling and output formatting.
3155
- Extended compatibility with `bash` and `zsh` shells.
3256

3357
### Fixed
58+
3459
- Resolved issues with Homebrew PHP detection on macOS.
3560
- Prevented terminal crashes due to incorrect sourcing in shell startup scripts.
3661
- Improved handling of missing PHP versions.

README.MD

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
[![PHP Version Manager (phpvm)](./assets/Banner.jpg)](https://github.com/Thavarshan/phpvm)
22

3+
[![Test](https://github.com/Thavarshan/phpvm/actions/workflows/test.yml/badge.svg)](https://github.com/Thavarshan/phpvm/actions/workflows/test.yml)
4+
[![Use](https://github.com/Thavarshan/phpvm/actions/workflows/use.yml/badge.svg)](https://github.com/Thavarshan/phpvm/actions/workflows/use.yml)
5+
[![Version](https://img.shields.io/github/v/release/Thavarshan/phpvm.svg)](https://github.com/Thavarshan/phpvm/releases)
6+
[![GitHub stars](https://img.shields.io/github/stars/Thavarshan/phpvm.svg)](https://github.com/Thavarshan/phpvm/stargazers)
7+
38
# PHP Version Manager (phpvm)
49

510
## Introduction
@@ -151,4 +156,5 @@ This project is licensed under the MIT License. See [LICENSE](./LICENSE) for det
151156
## Disclaimer
152157

153158
`phpvm` is provided as-is without any warranties. Use it at your own risk.
159+
154160
```

0 commit comments

Comments
 (0)