File tree Expand file tree Collapse file tree 4 files changed +26
-2
lines changed Expand file tree Collapse file tree 4 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ script:
11
11
- make test
12
12
- make lint
13
13
- make docs
14
+ - ./check_version.sh
14
15
after_success :
15
16
- python-codacy-coverage -r coverage.xml
16
17
before_deploy :
Original file line number Diff line number Diff line change @@ -5,7 +5,13 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
6
6
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
7
7
8
- ## [ 1.2.8] [ ] - 2019-05-21
8
+ ## [ 1.2.9] [ ] - 2019-05-21
9
+
10
+ ### Added
11
+
12
+ - CI script for checking if the version number has been updated.
13
+
14
+ ## [ 1.2.8] [ ] - 2019-05-20
9
15
10
16
### Added
11
17
@@ -69,6 +75,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
69
75
- Implemented ` -v ` /` --version ` option to show Zelt version.
70
76
- This changelog.
71
77
78
+ [ 1.2.9 ] : https://github.com/zalando-incubator/zelt/compare/v1.2.8...v1.2.9
72
79
[ 1.2.8 ] : https://github.com/zalando-incubator/zelt/compare/v1.2.7...v1.2.8
73
80
[ 1.2.7 ] : https://github.com/zalando-incubator/zelt/compare/v1.2.6...v1.2.7
74
81
[ 1.2.6 ] : https://github.com/zalando-incubator/zelt/compare/v1.2.5...v1.2.6
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ VERSION_FILE=" pyproject.toml"
4
+ PREVIOUS_VERSION=$( git describe --abbrev=0 --tags)
5
+ # Remove leading 'v' char.
6
+ PREVIOUS_VERSION=${PREVIOUS_VERSION# ?}
7
+ # Using sed to remove leading and trailing double quotes.
8
+ CURRENT_VERSION=$( grep -m 1 version $VERSION_FILE | awk ' {print $3}' | sed -e ' s/^"//' -e ' s/"$//' )
9
+
10
+ if [ $CURRENT_VERSION == $PREVIOUS_VERSION ]; then
11
+ echo " ERROR: Version has not been updated in '$VERSION_FILE '!"
12
+ echo " Don't forget to also update the CHANGELOG."
13
+ echo " Current version: $CURRENT_VERSION "
14
+ echo " Released version: $PREVIOUS_VERSION "
15
+ exit 1
16
+ fi
Original file line number Diff line number Diff line change 1
1
[tool .poetry ]
2
2
name = " zelt"
3
- version = " 1.2.8 "
3
+ version = " 1.2.9 "
4
4
description = " Zalando end-to-end load tester"
5
5
authors = [
6
6
" Brian Maher <brian.maher@zalando.de>" ,
You can’t perform that action at this time.
0 commit comments