Skip to content

Commit 09076b3

Browse files
committed
bump & test script
1 parent add121d commit 09076b3

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-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.2"
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 ".packageVersion = \"$NEW_VERSION\"" config.json > config.json.tmp && mv config.json.tmp config.json
17+
18+
echo "✓ Updated config.json packageVersion to $NEW_VERSION"
19+
echo "Done! Version bumped to $NEW_VERSION"

test.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
echo "Running FastComments C++ SDK tests..."
6+
7+
# Create build directory if it doesn't exist
8+
if [ ! -d "build" ]; then
9+
echo "Creating build directory..."
10+
mkdir -p build
11+
fi
12+
13+
cd build
14+
15+
# Configure with CMake
16+
echo "Configuring with CMake..."
17+
cmake ..
18+
19+
# Build the tests
20+
echo "Building tests..."
21+
make
22+
23+
# Run the tests
24+
echo ""
25+
echo "Running tests..."
26+
ctest --output-on-failure
27+
28+
echo ""
29+
echo "✓ All tests passed!"

0 commit comments

Comments
 (0)