Skip to content

Commit e63528b

Browse files
authored
Merge pull request #97 from utPLSQL/feature/improve_testing
Improve testing of CLI - matrix against all utPLSQL versions
2 parents 23122e4 + 22cf609 commit e63528b

File tree

2 files changed

+25
-9
lines changed

2 files changed

+25
-9
lines changed

.travis.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,20 @@ env:
1919
- DB_PASS=app
2020
- ORACLE_VERSION="11g-r2-xe"
2121
- DOCKER_OPTIONS="--shm-size=1g"
22+
- UTPLSQL_FILE="utPLSQL"
23+
matrix:
24+
- UTPLSQL_VERSION="v3.0.0"
25+
UTPLSQL_FILE="utPLSQLv3.0.0"
26+
- UTPLSQL_VERSION="v3.0.1"
27+
- UTPLSQL_VERSION="v3.0.2"
28+
- UTPLSQL_VERSION="v3.0.3"
29+
- UTPLSQL_VERSION="v3.0.4"
30+
- UTPLSQL_VERSION="v3.1.1"
31+
- UTPLSQL_VERSION="v3.1.2"
32+
- UTPLSQL_VERSION="v3.1.3"
33+
- UTPLSQL_VERSION="v3.1.6"
34+
- UTPLSQL_VERSION="develop"
35+
UTPLSQL_FILE="utPLSQL"
2236

2337
cache:
2438
directories:
@@ -50,6 +64,8 @@ deploy:
5064
on:
5165
repository: utPLSQL/utPLSQL-cli
5266
tags: true
67+
# Use only first job "#xxx.1" to publish artifacts
68+
condition: "${TRAVIS_JOB_NUMBER} =~ \\.1$"
5369
- provider: bintray
5470
file: bintray.json
5571
user: ${BINTRAY_USER}
@@ -59,6 +75,8 @@ deploy:
5975
on:
6076
repository: utPLSQL/utPLSQL-cli
6177
branch: develop
78+
# Use only first job "#xxx.1" to publish artifacts
79+
condition: "${TRAVIS_JOB_NUMBER} =~ \\.1$"
6280

6381
notifications:
6482
slack:

.travis/install_utplsql.sh

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@ set -ev
33
cd $(dirname $(readlink -f $0))
44

55
# Download the specified version of utPLSQL.
6-
UTPLSQL_VERSION="v3.0.4"
7-
UTPLSQL_FILE="utPLSQL"
8-
curl -L -O "https://github.com/utPLSQL/utPLSQL/releases/download/$UTPLSQL_VERSION/$UTPLSQL_FILE.tar.gz"
9-
10-
# Download develop branch of utPLSQL.
11-
#UTPLSQL_VERSION="develop"
12-
#UTPLSQL_FILE="utPLSQL"
13-
#git clone -b develop --single-branch https://github.com/utPLSQL/utPLSQL.git
14-
# tar -czf $UTPLSQL_FILE.tar.gz $UTPLSQL_FILE && rm -rf $UTPLSQL_FILE
6+
if [ "$UTPLSQL_VERSION" == "develop" ]
7+
then
8+
git clone -b develop --single-branch https://github.com/utPLSQL/utPLSQL.git
9+
tar -czf $UTPLSQL_FILE.tar.gz $UTPLSQL_FILE && rm -rf $UTPLSQL_FILE
10+
else
11+
curl -L -O "https://github.com/utPLSQL/utPLSQL/releases/download/$UTPLSQL_VERSION/$UTPLSQL_FILE.tar.gz"
12+
fi
1513

1614
# Create a temporary install script.
1715
cat > install.sh.tmp <<EOF

0 commit comments

Comments
 (0)