Skip to content

Commit e45bd26

Browse files
committed
Fixing builds for versions of utPLSQL that didn't keep version no in git repo.
1 parent 3d014cf commit e45bd26

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ env:
3737
- MAVEN_CFG=$HOME/.m2
3838
matrix:
3939
- UTPLSQL_3_VERSION='develop'
40-
- UTPLSQL_3_VERSION='v3.0.0'
41-
- UTPLSQL_3_VERSION='v3.0.4'
40+
- UTPLSQL_3_VERSION='v3.0.0' VERSION_PLACEHOLDER='utPLSQL - Version X.X.X.X'
41+
- UTPLSQL_3_VERSION='v3.0.4' VERSION_PLACEHOLDER='X.X.X.X'
4242
- UTPLSQL_3_VERSION='v3.1.1'
4343

4444
cache:
@@ -56,6 +56,8 @@ before_install:
5656
- git clone --depth=1 --branch=${UTPLSQL_3_VERSION} https://github.com/utPLSQL/utPLSQL.git ${UTPLSQL_DIR}
5757
# download latest utPLSQL-cli release
5858
- curl -Lk -o utPLSQL-cli.zip https://github.com/utPLSQL/utPLSQL-cli/releases/download/v${UTPLSQL_CLI_VERSION}/utPLSQL-cli.zip
59+
# update version placeholder before install
60+
- [[ -n ${VERSION_PLACEHOLDER} ]] && sed -i "s/${VERSION_PLACEHOLDER}/${UTPLSQL_3_VERSION}/g" ${UTPLSQL_DIR}/source/core/ut_utils.pks
5961

6062
install:
6163
- unzip utPLSQL-cli.zip && chmod -R u+x utPLSQL-cli

test/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ utPLSQL-cli/bin/utplsql run ${DB_USER}/${DB_PASS}@127.0.0.1:1521:${ORACLE_SID} \
77
-f=ut_documentation_reporter -c \
88
-f=ut_coverage_sonar_reporter -o=coverage.xml \
99
-f=ut_sonar_test_reporter -o=test_results.xml \
10-
--failure-exit-code=0 -scc
10+
--failure-exit-code=0

0 commit comments

Comments
 (0)