Skip to content

Commit 47c41e5

Browse files
committed
bump & test scripts
1 parent f3a9801 commit 47c41e5

2 files changed

Lines changed: 35 additions & 0 deletions

File tree

bump.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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!"

test.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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!"

0 commit comments

Comments
 (0)