File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -e
4+
5+ if [ -z " $1 " ]; then
6+ echo " Usage: ./bump.sh <new_version>"
7+ echo " Example: ./bump.sh 0.0.2"
8+ exit 1
9+ fi
10+
11+ NEW_VERSION=$1
12+
13+ echo " Bumping version to $NEW_VERSION ..."
14+ echo " Note: PHP SDK version is managed through git tags."
15+ echo " Current config.json does not contain a version field."
16+ echo " To publish version $NEW_VERSION , use: git tag v$NEW_VERSION && git push origin v$NEW_VERSION "
17+ echo " Done!"
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -e
4+
5+ echo " Running FastComments PHP SDK tests..."
6+
7+ # Check if composer dependencies are installed
8+ if [ ! -d " vendor" ]; then
9+ echo " Installing dependencies..."
10+ composer install
11+ fi
12+
13+ # Run PHPUnit tests
14+ echo " Running tests with PHPUnit..."
15+ ./vendor/bin/phpunit
16+
17+ echo " "
18+ echo " ✓ All tests passed!"
You can’t perform that action at this time.
0 commit comments