File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,10 +85,10 @@ before_script:
8585script :
8686 - if [ "${TRAVIS_TAG}" = "" ]; then bash .travis/install.sh; fi
8787 - if [ "${TRAVIS_TAG}" = "" ]; then bash .travis/install_utplsql_release.sh; fi
88- - if [ "${TRAVIS_TAG}" = "" ]; then bash test/install_and_run_tests.sh; fi
8988 - if [ "${TRAVIS_TAG}" = "" ]; then bash .travis/create_additional_grants_for_old_tests.sh; fi
9089 - if [ "${TRAVIS_TAG}" = "" ]; then bash .travis/run_examples.sh; fi
9190 - if [ "${TRAVIS_TAG}" = "" ]; then bash .travis/run_old_tests.sh; fi
91+ - if [ "${TRAVIS_TAG}" = "" ]; then bash test/install_and_run_tests.sh; fi
9292 - if [ "${TRAVIS_TAG}" = "" ] && [ "${TRAVIS_REPO_SLUG}" = "${UTPLSQL_REPO}" ]; then sonar-scanner; fi
9393 - if [ "${TRAVIS_TAG}" = "" ]; then bash .travis/coveralls_uploader.sh; fi
9494 - bash .travis/build_docs.sh
Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ sonar.projectVersion=v3.0.2
99# If not set, SonarQube starts looking for source code from the directory containing
1010# the sonar-project.properties file.
1111sonar.sources =./source
12- sonar.coverageReportPaths =./tests /coverage.xml,coverage.xml
12+ sonar.coverageReportPaths =./test /coverage.xml,coverage.xml
1313sonar.tests =./test
14- sonar.testExecutionReportPaths =test_results.xml
14+ sonar.testExecutionReportPaths =./test/ test_results.xml
1515sonar.links.issue =https://github.com/utPLSQL/utPLSQL/issues
1616sonar.links.ci =https://travis-ci.org/utPLSQL/utPLSQL
1717sonar.links.homepage =https://github.com/utPLSQL/utPLSQL
Original file line number Diff line number Diff line change 11#! /bin/bash
22set -ev
33
4- cd test
4+ # cd test
5+ #
6+ # "$SQLCLI" ${UT3_TESTER}/${UT3_TESTER_PASSWORD}@//${CONNECTION_STR} @install_tests.sql
7+ #
8+ # cd ..
9+ #
10+ # utPLSQL-cli/bin/utplsql run ${UT3_TESTER}/${UT3_TESTER_PASSWORD}@${CONNECTION_STR} \
11+ # -source_path=source -test_path=tests \
12+ # -f=ut_documentation_reporter -c -o=test_results.log -s \
13+ # -f=ut_coverage_sonar_reporter -o=coverage.xml \
14+ # -f=ut_sonar_test_reporter -o=test_results.xml
515
6- " $SQLCLI " ${UT3_TESTER} / ${UT3_TESTER_PASSWORD} @// ${CONNECTION_STR} @install_tests.sql
16+ status_line_regex= " ^[0-9]+ tests, ([0-9]+) failed, ([0-9]+) errored.* "
717
8- cd ..
18+ RC= $( cat test_results.log | grep -E " ${status_line_regex} " | sed -re " s/ ${status_line_regex} /\1\2/ " )
919
10- utPLSQL-cli/bin/utplsql run ${UT3_TESTER} /${UT3_TESTER_PASSWORD} @${CONNECTION_STR} \
11- -source_path=source -test_path=tests \
12- -f=ut_documentation_reporter -c \
13- -f=ut_coverage_sonar_reporter -o=coverage.xml \
14- -f=ut_sonar_test_reporter -o=test_results.xml
20+ exit $RC
You can’t perform that action at this time.
0 commit comments