Skip to content

Commit 9fba605

Browse files
committed
bump & test script
1 parent 390fd5c commit 9fba605

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

bump.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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.28"
8+
exit 1
9+
fi
10+
11+
NEW_VERSION=$1
12+
13+
echo "Bumping version to $NEW_VERSION..."
14+
15+
# Update config.json
16+
jq ".artifactVersion = \"$NEW_VERSION\"" config.json > config.json.tmp && mv config.json.tmp config.json
17+
18+
echo "✓ Updated config.json artifactVersion to $NEW_VERSION"
19+
echo "Done! Version bumped to $NEW_VERSION"

test.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
echo "Running FastComments Java SDK tests..."
6+
7+
# Run tests for client module
8+
echo "Running client tests..."
9+
cd client
10+
chmod +x gradlew
11+
./gradlew test
12+
13+
echo ""
14+
echo "✓ All tests passed!"

0 commit comments

Comments
 (0)