File tree Expand file tree Collapse file tree 2 files changed +48
-0
lines changed
Expand file tree Collapse file tree 2 files changed +48
-0
lines changed 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+
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 "
Original file line number Diff line number Diff line change 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!"
You can’t perform that action at this time.
0 commit comments