File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 1818# Run tests
1919test * args = ' ':
2020 ./ .venv/ bin/ python3 -m robot.run --outputdir output {{ args}} tests
21+
22+ # Release
23+ release bump = " minor":
24+ #!/ bin/ bash
25+ set -e
26+ CURRENT_VERSION=$(git tag -l | sort -rV | head -n1)
27+ MAJOR=$(echo " $CURRENT_VERSION" | cut -d. -f1)
28+ MINOR=$(echo " $CURRENT_VERSION" | cut -d. -f2)
29+ PATCH=$(echo " $CURRENT_VERSION" | cut -d. -f3)
30+ case " {{ bump}} " in
31+ major) MAJOR=$((MAJOR + 1 ));;
32+ minor) MINOR=$((MINOR + 1 ));;
33+ patch) PATCH=$((PATCH + 1 ));;
34+ esac
35+ echo " Current version: $CURRENT_VERSION"
36+ RELEASE_VERSION=" ${MAJOR}.${MINOR}.${PATCH}"
37+ echo " Next version: $RELEASE_VERSION"
38+ git tag -a " $RELEASE_VERSION" -m " $RELEASE_VERSION"
39+ git push origin " $RELEASE_VERSION"
You can’t perform that action at this time.
0 commit comments