Skip to content

Commit c0d2766

Browse files
committed
Making test cmd use custom settings.xml
1 parent 7676add commit c0d2766

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ env:
1111
global:
1212
- DOCKER_CFG=$HOME/.docker
1313
- DOCKER_REPO="viniciusam/oracledb"
14+
- MAVEN_SETTINGS=$HOME/.m2/settings.xml # TODO: Cache?
1415
- UTPLSQL_VERSION="v3.0.0-beta"
1516
- UTPLSQL_FILE="utPLSQLv3.0.0.562-beta"
1617
matrix:
@@ -26,4 +27,4 @@ install:
2627
- bash .travis/install_utplsql.sh
2728

2829
script:
29-
- mvn test -B
30+
- mvn --settings $MAVEN_SETTINGS test -B # TODO: Why is not working with settings on user folder?

.travis/maven_cfg.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ if [ "$ORACLE_OTN_USER" == "" ] || [ "$ORACLE_OTN_PASSWORD" == "" ]; then
77
exit 1
88
fi
99

10-
MAVEN_SETTINGS=$HOME/.m2/settings.xml
11-
1210
# Copy the maven settings file to the right place, and set the username/password for oracle maven server.
1311
cp settings.tmpl.xml $MAVEN_SETTINGS
1412
sed -i -e "s|###USERNAME###|$ORACLE_OTN_USER|g" $MAVEN_SETTINGS

.travis/settings.tmpl.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ under the License.
2626
<servers>
2727
<server>
2828
<id>maven.oracle.com</id>
29-
<username>###ORACLE_OTN_USER###</username>
30-
<password>###ORACLE_OTN_PASSWORD###</password>
29+
<username>###USERNAME###</username>
30+
<password>###PASSWORD###</password>
3131
<configuration>
3232
<basicAuthScope>
3333
<host>ANY</host>

0 commit comments

Comments
 (0)