Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit efc4fe9

Browse files
committed
Changed gc_version to contain only version tag without the 'utPLSQL - Version ' text
1 parent 0801ee3 commit efc4fe9

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ env:
3434
- CURRENT_BRANCH=${TRAVIS_BRANCH}
3535
- UTPLSQL_REPO="utPLSQL/utPLSQL"
3636
- UTPLSQL_BUILD_NO="${TRAVIS_BUILD_NUMBER:-0}"
37-
- UTPLSQL_VERSION_PLACEHOLDER='utPLSQL - Version'
37+
- UTPLSQL_VERSION_PATTERN='v?([0-9X]+\.){3}[0-9X]+'
3838
- UTPLSQL_VERSION=$(. .travis/get_project_version.sh)
3939
- UTPLSQL_BUILD_VERSION=$(. .travis/get_project_build_version.sh)
4040
- UTPLSQL_SOURCES_DIR='source'

.travis/update_project_version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
echo Current branch is "${CURRENT_BRANCH}"
44

55
echo Update version in project source files
6-
find ${UTPLSQL_SOURCES_DIR} -type f -name '*' -exec sed -i -r "s/(${UTPLSQL_VERSION_PLACEHOLDER} )[^']*(')?/\1${UTPLSQL_BUILD_VERSION}\2/" {} \;
6+
find ${UTPLSQL_SOURCES_DIR} -type f -name '*' -exec sed -i -r "s/${UTPLSQL_VERSION_PATTERN}/${UTPLSQL_BUILD_VERSION}/" {} \;
77
echo Source files updated with version tag: ${UTPLSQL_BUILD_VERSION}
88

99
echo Update of sonar-project.properties sonar.projectVersion

source/core/ut_utils.pks

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ create or replace package ut_utils authid definer is
2222

2323
*/
2424

25-
gc_version constant varchar2(50) := 'utPLSQL - Version X.X.X.X';
25+
gc_version constant varchar2(50) := 'X.X.X.X';
2626

2727
/* Constants: Event names */
2828
gc_run constant varchar2(12) := 'run';
@@ -218,12 +218,12 @@ create or replace package ut_utils authid definer is
218218
procedure append_to_clob(a_src_clob in out nocopy clob, a_new_data varchar2);
219219

220220
function convert_collection(a_collection ut_varchar2_list) return ut_varchar2_rows;
221-
221+
222222
/**
223223
* Set session's action and module using dbms_application_info
224224
*/
225225
procedure set_action(a_text in varchar2);
226-
226+
227227
/**
228228
* Set session's client info using dbms_application_info
229229
*/

0 commit comments

Comments
 (0)