File tree 5 files changed +8
-189
lines changed
5 files changed +8
-189
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ addons:
12
12
branches :
13
13
- develop
14
14
- master
15
+ - test_ut_run_script
15
16
16
17
env :
17
18
global :
26
27
- DB_USER=ut3_demo
27
28
- DB_PASS=LHZYPbWvYdu2ctp8
28
29
# #utPLSQL variables
29
- - UTPLSQL_DOWNLOAD_URL=$(curl --silent https://api.github.com/repos/utPLSQL/utPLSQL/releases/latest | awk '/browser_download_url/ { print $2 }' | grep ".zip" | sed 's/"//g')
30
- - UTPLSQL_DOWNLOAD_FILE="${UTPLSQL_DOWNLOAD_URL##*/}"
31
- - UTPLSQL_DIR="${UTPLSQL_DOWNLOAD_FILE%.*}"
30
+ - UTPLSQL_DIR="utPLSQL"
32
31
before_install :
33
32
- npm install -g phantomjs-prebuilt casperjs
34
33
# download Oracle XE installer for Travis
35
34
- .travis/oracle/download.sh
36
- # download utPLSQL
37
- - curl -LOk "${UTPLSQL_DOWNLOAD_URL}"
38
- - unzip -q "${UTPLSQL_DOWNLOAD_FILE}"
39
- - cp ${UTPLSQL_DIR}/client_source/sqlplus/ut_run.sql .
35
+ # download latest utPLSQL develop branch
36
+ - git clone --depth 1 --branch develop https://github.com/utPLSQL/utPLSQL.git ${UTPLSQL_DIR}
37
+ - cp ${UTPLSQL_DIR}/client_source/sqlplus/* .
40
38
41
39
install :
42
40
# Install Oracle Database
@@ -50,6 +48,6 @@ install:
50
48
51
49
script :
52
50
# Run tests
53
- - test/run.sh
51
+ - ./ut_run ${DB_USER}/${DB_PASS} -source_path=source -test_path=test -f=ut_documentation_reporter -c -f=ut_coverage_sonar_reporter -o=coverage.xml -f=ut_sonar_test_reporter -o=test_results.xml
54
52
# Run sonar scanner and publish to sonar
55
53
- sonar-scanner
Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ sonar.organization=utplsql
9
9
# If not set, SonarQube starts looking for source code from the directory containing
10
10
# the sonar-project.properties file.
11
11
sonar.sources =./source
12
- sonar.coverageReportPaths =./sonar- coverage.xml
12
+ sonar.coverageReportPaths =./coverage.xml
13
13
sonar.tests =./test
14
- sonar.testExecutionReportPaths =./sonar-test-results .xml
14
+ sonar.testExecutionReportPaths =./test_results .xml
15
15
sonar.links.issue =https://github.com/utPLSQL/utPLSQL-demo-project/issues
16
16
sonar.links.ci =https://travis-ci.org/utPLSQL/utPLSQL-demo-project
17
17
sonar.links.homepage =https://github.com/utPLSQL/utPLSQL-demo-project
Original file line number Diff line number Diff line change 2
2
3
3
set -ev
4
4
5
- # adding sonar test reporter
6
- sqlplus -L -S / AS SYSDBA << SQL
7
- alter session set current_schema=ut3;
8
-
9
- @@test/ut_sonar_test_reporter.tps
10
- @@test/ut_sonar_test_reporter.tpb
11
- create public synonym ut_sonar_test_reporter for ut_sonar_test_reporter;
12
- grant execute on ut_sonar_test_reporter to public;
13
-
14
- exit
15
- SQL
16
-
17
5
sqlplus -L -S ${DB_USER} /${DB_PASS} << SQL
18
6
whenever sqlerror exit failure rollback
19
7
whenever oserror exit failure rollback
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments