Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fb88967

Browse files
committed
Updated run.sh
Switched to use of run.sh in travis build Updated project readme
1 parent 144a8b2 commit fb88967

File tree

4 files changed

+12
-60
lines changed

4 files changed

+12
-60
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ install:
5151

5252
script:
5353
# Run tests
54+
- test/run.sh
5455
- utPLSQL-cli/bin/utplsql 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
5556
# Run sonar scanner and publish to sonar
5657
- sonar-scanner

README.md

+10-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
# A demo of an Oracle Database Project
1+
[![build](https://img.shields.io/travis/utPLSQL/utPLSQL-demo-project/develop.svg?label=develop%20branch)](https://travis-ci.org/utPLSQL/utPLSQL-demo-project)
2+
[![sonar](https://sonarcloud.io/api/badges/gate?key=utPLSQL%3AutPLSQL-demo-project)](https://sonarcloud.io/dashboard/index?id=utPLSQL%3AutPLSQL-demo-project)
3+
4+
5+
# CI/CD and Unit Testing for Oracle PLSQL
6+
Demo project using utPLSQL, Travis and SonarCloud for continuous integration of PLSQL and SQL code.
7+
28

39
This is a demo project using [utPLSQL v3](https://github.com/utPLSQL/utPLSQL) for unit testing of Oracle PLSQL code.
410
The project is also taking benefit of Continuous Integration with Travis CI server as well as static code analysis, code coverage and test results reporting using SoanrQube.
@@ -9,10 +15,11 @@ The build process consists of following steps:
915
- Download Oracle Database 11g XE
1016
- Download latest release of utPLSQL
1117
- Install Oracle Database
12-
- Install utPLSQL framework
18+
- Install [utPLSQL](https://github.com/utPLSQL/utPLSQL) framework
1319
- Install [project sources](source/install.sh)
1420
- Install [unit tests](test/install.sh)
21+
- Download and unzip the [utplsql-cli](https://github.com/utPLSQL/utPLSQL-cli) project binaries
1522
- [Execute all tests](test/run.sh) on the project
16-
- Publish [test results](https://sonarqube.com/component_measures/metric/tests/list?id=utPLSQL%3AutPLSQL-demo-project) and [code coverage](https://sonarqube.com/component_measures/metric/coverage/list?id=utPLSQL%3AutPLSQL-demo-project) to [SonarQube](https://sonarqube.com/) cloud service
23+
- Publish [test results](https://sonarcloud.io/component_measures/metric/tests/list?id=utPLSQL%3AutPLSQL-demo-project) and [code coverage](https://sonarcloud.io/component_measures/metric/coverage/list?id=utPLSQL%3AutPLSQL-demo-project) to [SonarQube](https://sonarcloud.io/) cloud service
1724

1825

test/run.sh

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@
22

33
set -ev
44

5-
CURRENT_DIR="$(dirname "$(readlink -f "$0")")"
6-
7-
sqlplus ${DB_USER}/${DB_PASS} @${CURRENT_DIR}/run.sql
5+
utPLSQL-cli/bin/utplsql run ${DB_USER}/${DB_PASS}@${ORACLE_SID} -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

test/run.sql

-54
This file was deleted.

0 commit comments

Comments
 (0)