Skip to content

Commit 3c46503

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

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ env:
3535
- UTPLSQL_CLI_VERSION="3.1.0"
3636
matrix:
3737
- UTPLSQL_3_VERSION='develop'
38-
- UTPLSQL_3_VERSION='v3.0.0'
39-
- UTPLSQL_3_VERSION='v3.0.4'
38+
- UTPLSQL_3_VERSION='v3.0.0' VERSION_PLACEHOLDER='utPLSQL - Version X.X.X.X'
39+
- UTPLSQL_3_VERSION='v3.0.4' VERSION_PLACEHOLDER='X.X.X.X'
4040
- UTPLSQL_3_VERSION='v3.1.1'
4141

4242
before_install:
@@ -46,6 +46,8 @@ before_install:
4646
- tar x -C .travis/oracle --strip-components=1 -f v2.0.3.tar.gz
4747
# download utPLSQL v3 release
4848
- git clone --depth=1 --branch=${UTPLSQL_3_VERSION} https://github.com/utPLSQL/utPLSQL.git ${UTPLSQL_DIR}
49+
# update version placeholder before install
50+
- if [[ -n ${VERSION_PLACEHOLDER} ]] ; then sed -i "s/${VERSION_PLACEHOLDER}/${UTPLSQL_3_VERSION}/g" ${UTPLSQL_DIR}/source/core/ut_utils.pks; fi
4951
# download utPLSQL v.2.3.1 release
5052
- curl -Lk -o utPLSQL_v2.zip $(curl --silent https://api.github.com/repos/utPLSQL/utPLSQL/releases/3608515 | awk '/browser_download_url/ { print $2 }' | grep '\.zip"$' | sed 's/"//g')
5153
- unzip -d ${UTPLSQL_V2_DIR} -q utPLSQL_v2.zip

0 commit comments

Comments
 (0)