Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
443 commits
Select commit Hold shift + click to select a range
7fde523
Version number to 3 instead of X.X.X.X
pesse Feb 14, 2018
06180f4
Merge pull request #588 from utPLSQL/contribution_addition
jgebal Feb 14, 2018
7cfd40e
Updated project version after build [skip ci]
Feb 14, 2018
daef404
Limiting cursor comparison to ignore column names when comparing row …
jgebal Feb 15, 2018
06e92c6
Added ability to Diff columns (name and datatype differences).
jgebal Feb 18, 2018
65c027e
Added ability to show diff on columns where data actually differs
jgebal Feb 19, 2018
ddd8247
Removed commented code. Added comment on the need for xmltransform.
jgebal Feb 19, 2018
0a6a43e
Improved row and column diff.
jgebal Feb 20, 2018
a1e8113
Fixed 11g R2 compatibility.
jgebal Feb 21, 2018
b8dc2a6
Output-Buffer no longer deletes contents during init
pesse Feb 21, 2018
d02c406
Added the documentation for the throws exception number annotations
AlexisGaldamez Feb 21, 2018
442af33
Removed reporting of cursor data when a diff is used.
jgebal Feb 22, 2018
8fefdcf
Added ut_output_reporter_base to synonyms and grants
pesse Feb 22, 2018
2135bd6
Updated documentation for `--%throws` annotation.
jgebal Feb 24, 2018
962693e
Fixed failing old test.
jgebal Feb 24, 2018
fb1eeab
Added Cobertura Coverage
lwasylow Feb 26, 2018
c3e7d29
Merge pull request #594 from utPLSQL/feature/documentation_throws_ann…
jgebal Feb 27, 2018
53ade01
Updated project version after build [skip ci]
Feb 27, 2018
8d44bc1
Added cob coverage
lwasylow Feb 27, 2018
ddf91e5
Added cobertura reporter
lwasylow Feb 27, 2018
368aec3
Added Cobertura reporter
lwasylow Feb 27, 2018
3bbcd19
Added Cob Reporter Tests
lwasylow Feb 27, 2018
9534b27
Added Cob Reporter Tests
lwasylow Feb 27, 2018
4f8ab98
Added Cob reporter
lwasylow Feb 27, 2018
f8895a2
Added Cobertura Coverage
lwasylow Feb 26, 2018
bb95cfb
Added cob coverage
lwasylow Feb 27, 2018
ac50650
Added cobertura reporter
lwasylow Feb 27, 2018
5e91795
Added Cobertura reporter
lwasylow Feb 27, 2018
bba8ec7
Added Cob Reporter Tests
lwasylow Feb 27, 2018
e8a883d
Added Cob Reporter Tests
lwasylow Feb 27, 2018
afd9daf
Added Cob reporter
lwasylow Feb 27, 2018
fcc08c5
Merge branch 'cobertura_cov_reporter' of github.com:lwasylow/utPLSQL …
lwasylow Feb 27, 2018
ec0841f
Adding a basic Cobertura coverage format
lwasylow Feb 27, 2018
d96c9e9
Old checkout
lwasylow Feb 27, 2018
83e4b0b
Revert "Added ut_output_reporter_base to synonyms and grants"
pesse Feb 27, 2018
b4ece73
Added new member-function has_output to easily check
pesse Feb 27, 2018
94b7ea1
Merge remote-tracking branch 'upstream/develop' into feature/reporter…
pesse Feb 27, 2018
aaf4a3a
Adding ability to diff on collections and objects.
jgebal Feb 28, 2018
c491cdc
Fixed and improved failing tests.
jgebal Feb 28, 2018
d792fec
Revert "Added new member-function has_output to easily check"
pesse Feb 28, 2018
202e697
Reapply "Added ut_output_reporter_base to synonyms and grants""
pesse Feb 28, 2018
bfde057
Add function to check whether a given name is a valid output reporter
pesse Feb 28, 2018
a3a36e1
Fixed failing 11g test (different SQLCODE for invalid XPath on 11g)
jgebal Feb 28, 2018
b87cf1c
Fixing build and updating documention
lwasylow Feb 28, 2018
3dea567
Fixed an issue with CAHR/VARCHAR2 data-type comparison on cursors.
jgebal Mar 1, 2018
6649502
Updated documentation.
jgebal Mar 1, 2018
a1c5c7e
Updated documentation.
jgebal Mar 1, 2018
94cb49e
Applied fixes to code.
lwasylow Mar 1, 2018
f7358e2
Updated Test to cater for new package name
lwasylow Mar 1, 2018
059951d
Fix tests install file.
lwasylow Mar 1, 2018
6fd6299
Update coverage.md
jgebal Mar 1, 2018
fed7c66
Merge pull request #596 from lwasylow/cobertura_cov_reporter
jgebal Mar 1, 2018
291944b
Updated test to check for NULL data comparison in object.
jgebal Mar 1, 2018
651ea21
Merge branch 'develop' into feature/add_cursor_column_check
jgebal Mar 1, 2018
031a732
Updated project version after build [skip ci]
Mar 1, 2018
768a197
Merge branch 'develop' into feature/add_cursor_column_check
jgebal Mar 2, 2018
bbdc5bd
Merge pull request #591 from utPLSQL/feature/add_cursor_column_check
jgebal Mar 2, 2018
40af4e7
Updated project version after build [skip ci]
Mar 2, 2018
92f7b4c
Replace is_output_reporter by get_reporters_list
pesse Mar 4, 2018
5272342
Added description to all reporters
pesse Mar 5, 2018
7b34109
Unit-Test for get_reporters_list
pesse Mar 5, 2018
aae83f2
Fix get_reporters_list unit-test
pesse Mar 5, 2018
014981c
Merge remote-tracking branch 'upstream/develop' into feature/reporter…
pesse Mar 5, 2018
4488415
We have a Cobertura-Reporter now, too
pesse Mar 5, 2018
762727b
Improved reporter-description according to jgebal's suggestions
pesse Mar 6, 2018
7e428a1
Bump version to 3.1.0
pesse Mar 6, 2018
df5063d
Fixed bad placement of calls to dbms_crypto - they need to be done fr…
jgebal Mar 7, 2018
fc5f305
Merge pull request #600 from utPLSQL/feature/fix_dbms_crypto_privs_re…
pesse Mar 7, 2018
a466609
Merge remote-tracking branch 'upstream/develop' into feature/reporter…
pesse Mar 7, 2018
72206f1
Updated project version after build [skip ci]
Mar 7, 2018
c0df23d
Added Cobertura Description
lwasylow Mar 7, 2018
cdacf29
Added Cobertura Description
lwasylow Mar 7, 2018
9504d1b
Merge remote-tracking branch 'upstream/develop' into feature/reporter…
pesse Mar 7, 2018
d3b034d
Merge pull request #589 from utPLSQL/feature/reporters_object_model_fix
pesse Mar 8, 2018
aedbbe7
Updated project version after build [skip ci]
Mar 8, 2018
287590b
12.2 Stable :
lwasylow Mar 11, 2018
68768f8
12.2 Stable :
lwasylow Mar 13, 2018
76bf869
12.2 Stable :
lwasylow Mar 13, 2018
1f4f5f0
Tests 12.2 Coverage:
lwasylow Mar 14, 2018
90858eb
Added 12.2 coverage
lwasylow Mar 14, 2018
d77cf9a
Test 12.2 coverage
lwasylow Mar 14, 2018
4f83357
Added 12.2 Coverage
lwasylow Mar 14, 2018
ac40332
Added 12.2 Coverage
lwasylow Mar 14, 2018
5f74db9
Merge pull request #602 from lwasylow/12coveragestab2
lwasylow Mar 14, 2018
9d7f16c
Added conditional install of tests for 12.2 only - when block coverag…
jgebal Mar 15, 2018
2d1c94f
Fixed typos in expectations documentation
jgebal Mar 15, 2018
95259c6
Merge pull request #603 from utPLSQL/feature/documentation_typos
jgebal Mar 16, 2018
2debaec
Updated project version after build [skip ci]
Mar 16, 2018
67bb12f
All tests will now get executed even if some of them fail due to pack…
jgebal Mar 16, 2018
5509a30
File mapping is now unique for individual object.
jgebal Mar 16, 2018
bd0a921
Fixed `ORA-02055` issue.
jgebal Mar 16, 2018
05748a0
Using proper way to get database SERVICE_NAME
jgebal Mar 16, 2018
bcb8cea
Merge pull request #608 from utPLSQL/feature/distributed_transaction_fix
jgebal Mar 17, 2018
a10fd9a
Merge pull request #607 from utPLSQL/feature/coverage_file_mapper_exc…
jgebal Mar 17, 2018
036301d
Merge pull request #605 from utPLSQL/feature/tests_run_with_package_s…
jgebal Mar 17, 2018
73c6869
Updated project version after build [skip ci]
Mar 17, 2018
20541b5
Refactoring coverage:
lwasylow Mar 18, 2018
c377250
Deprecation warnings are now showing in `ut_documentation_reporter` o…
jgebal Mar 19, 2018
6d140a3
Merge pull request #609 from utPLSQL/feature/warnings_reporting_fix
jgebal Mar 19, 2018
812e0ce
Updated project version after build [skip ci]
Mar 19, 2018
edc82cc
Fixed misleading naming in documentation
jgebal Mar 20, 2018
6e6e285
Unified annotation syntax in documentation to be `--%name`
jgebal Mar 20, 2018
ab7eb93
Coverage Refactoring:
lwasylow Mar 23, 2018
6e95077
Merge pull request #613 from utPLSQL/feature/documentation_improvements
jgebal Mar 24, 2018
c787e47
Added support for multiple occurrences of before and after blocks.
jgebal Mar 4, 2018
2399981
tmp
jgebal Mar 14, 2018
2631355
Fixed issue with null items list.
jgebal Mar 15, 2018
a62c9ce
Updated project version after build [skip ci]
Mar 24, 2018
a05475a
Redefined event listeners mechanism.
jgebal Mar 25, 2018
f955d2a
Redefined event listeners mechanism.
jgebal Mar 25, 2018
430f76f
Fixed minor bug in XUnit reporter (showing CDATA for errors even when…
jgebal Mar 25, 2018
8dbb1a1
Merge pull request #614 from lwasylow/feature/12cblockcoverage
lwasylow Mar 25, 2018
e0b220d
Merge branch 'develop' into feature/12cblockcoverage
lwasylow Mar 25, 2018
2560f5b
Revert "Feature/12cblockcoverage"
lwasylow Mar 25, 2018
6fe32c5
Merge pull request #615 from utPLSQL/revert-614-feature/12cblockcoverage
lwasylow Mar 25, 2018
8235848
Refactor Coverage:
lwasylow Mar 25, 2018
78fdab5
Refactor Coverage:
lwasylow Mar 25, 2018
3a19341
Merge branch 'feature/12cblockcoverage' of github.com:lwasylow/utPLSQ…
lwasylow Mar 25, 2018
466e126
Update test local
lwasylow Mar 25, 2018
e968f76
Merge pull request #616 from lwasylow/feature/12cblockcoverage
lwasylow Mar 25, 2018
18e033c
Added Junit Windy Road version 1 reporter
lwasylow Mar 27, 2018
df1aee3
Added Junit Windy Road version 1 reporter
lwasylow Mar 27, 2018
181c835
Merge branch 'junitreporter' of github.com:lwasylow/utPLSQL into juni…
lwasylow Mar 27, 2018
cf8757a
Added tests for junit
lwasylow Mar 27, 2018
d5ed5a1
Update script with slash
lwasylow Mar 27, 2018
3d8a88d
Update Uninstall with missing synonym drop
lwasylow Mar 28, 2018
327cb3b
Merge pull request #617 from lwasylow/addeduninstall
jgebal Mar 28, 2018
8264e12
Updated project version after build [skip ci]
Mar 28, 2018
f5f8b4b
TFS Junit
lwasylow Mar 28, 2018
0a25335
Renamed junit to be more TFS specific
lwasylow Mar 28, 2018
2537ced
Changed propagation of rollback. Now rollback will propagate from par…
jgebal Mar 29, 2018
9308662
Fixed examples.
jgebal Mar 29, 2018
17ee8cb
Fixed test for empty description in 11g.
jgebal Mar 29, 2018
93be873
Fixed test for empty description in 11g.
jgebal Mar 29, 2018
559ff16
Adding Tests Results
lwasylow Mar 29, 2018
52530f0
Update docs with new reporter
lwasylow Mar 29, 2018
2a078f8
Merge branch 'develop' into junitreporter
jgebal Mar 29, 2018
75b96c3
Fixed double warning on missing endcontext annotation.
jgebal Mar 29, 2018
df4ac90
Improved cache purging and update4d documentation
jgebal Mar 29, 2018
7d6e1b1
Fixed bad implementation.
jgebal Mar 29, 2018
2a8da3d
Updated documentation.
lwasylow Mar 29, 2018
1a015e2
Aligned naming conventions with contributing guide.
jgebal Mar 29, 2018
d0635c1
Updated comment/description for `purge_cache`
jgebal Mar 29, 2018
950b946
Updated the way documentation is published for latest release.
jgebal Mar 29, 2018
7b87c35
Merge pull request #619 from lwasylow/junitreporter
jgebal Mar 30, 2018
4002aad
Updated project version after build [skip ci]
Mar 30, 2018
3a66021
tmp
jgebal Mar 30, 2018
a6dadcc
fix in test to overcome 11g XML missing attributes in 3.0.4
jgebal Mar 30, 2018
cbe31e5
Fixed rerunability of tests
jgebal Mar 31, 2018
ec498fa
Merge branch 'develop' into feature/latest_release_doc_publishing
jgebal Mar 31, 2018
9ab5efd
Merge pull request #622 from utPLSQL/feature/latest_release_doc_publi…
jgebal Mar 31, 2018
5cfb8f5
Merge branch 'develop' into feature/restrictive_code_style_check
jgebal Mar 31, 2018
db0d2dc
Updated project version after build [skip ci]
Mar 31, 2018
fee6576
Fixed some of the clunky coverage options behavior.
jgebal Mar 31, 2018
23c5ed2
Fixed names after merge from develop.
jgebal Mar 31, 2018
0f1d789
12.2 coverage
lwasylow Apr 3, 2018
faab0fe
Merge pull request #625 from lwasylow/feature/12cblockcoverage
lwasylow Apr 3, 2018
35e5e13
12.2 coverage
lwasylow Apr 3, 2018
1289e99
Merge branch 'feature/12cblockcoverage' of github.com:lwasylow/utPLSQ…
lwasylow Apr 3, 2018
d3ce10c
Merge pull request #626 from lwasylow/feature/12cblockcoverage
lwasylow Apr 3, 2018
c0ca9d3
Fixing error in package name
lwasylow Apr 3, 2018
f151a6e
Update test
lwasylow Apr 4, 2018
0a00fd8
Fixed issue when user execution tests doesn't have access to DBA_TYPE…
jgebal Apr 7, 2018
6f0d57d
Documentation improvements.
jgebal Apr 7, 2018
a2fb8b2
Merge pull request #628 from utPLSQL/feature/fixes_to_reporter_list
jgebal Apr 7, 2018
807f93f
Merge branch 'develop' into feature/restrictive_code_style_check
jgebal Apr 7, 2018
1ea85e7
Merge pull request #621 from utPLSQL/feature/restrictive_code_style_c…
jgebal Apr 7, 2018
4bc7ced
Merge branch 'develop' into feature/support_of_context
jgebal Apr 7, 2018
bd9a201
Updated project version after build [skip ci]
Apr 7, 2018
8a26845
Fixes after merging from develop.
jgebal Apr 7, 2018
28f7653
Statement Coverage First Commit
lwasylow Apr 7, 2018
1f51049
Merge branch 'develop' of https://github.com/utPLSQL/utPLSQL into fea…
lwasylow Apr 7, 2018
9c87b06
Merge branch 'develop' of github.com:utPLSQL/utPLSQL into feature/12c…
lwasylow Apr 7, 2018
e9c4e80
Fixed test failure on 11g R2 - some issues with LIKE operator, long p…
jgebal Apr 7, 2018
9ac345a
Merge branch 'develop' into feature/improve_cache_purging
jgebal Apr 7, 2018
d8b8e87
Updated coverage with statement level information
lwasylow Apr 7, 2018
bf192db
Merge remote-tracking branch 'origin/develop' into feature/file_mappe…
jgebal Apr 7, 2018
6f04558
Merge pull request #620 from utPLSQL/feature/improve_cache_purging
jgebal Apr 7, 2018
4314cde
Updated project version after build [skip ci]
Apr 7, 2018
bfbfa43
Updated documentation.
jgebal Apr 7, 2018
9cd61bf
Marking first column as bold
jgebal Apr 7, 2018
c6bc6bd
Merge branch 'develop' into feature/file_mapper_doc_and_improvements
jgebal Apr 7, 2018
4447324
Merge pull request #630 from utPLSQL/feature/file_mapper_doc_and_impr…
jgebal Apr 7, 2018
c309807
Update coverage.md
jgebal Apr 7, 2018
dac5398
Updated project version after build [skip ci]
Apr 7, 2018
49b1b84
Move get_cov_sql function into common package to remove code duplication
lwasylow Apr 8, 2018
ab7eb24
Refactor Coverage to now enrich profile for partially covered lines u…
lwasylow Apr 8, 2018
36279fa
Update tests and fixed typo in original coverage reporter
lwasylow Apr 10, 2018
661ef74
Merge branch 'feature/12cblockcoverage' of https://github.com/utPLSQL…
lwasylow Apr 10, 2018
2e8f624
Fixed typo in install documentation
jgebal Apr 10, 2018
0d3b887
Merge pull request #637 from utPLSQL/fix_typo_in_doc
jgebal Apr 10, 2018
57cba82
Updated project version after build [skip ci]
Apr 10, 2018
57f7a4f
Updated coverage
lwasylow Apr 11, 2018
3a2ff00
Merge branch 'develop' of https://github.com/utPLSQL/utPLSQL into fea…
lwasylow Apr 11, 2018
e6c2be2
Merge pull request #640 from lwasylow/feature/12cov_extended
lwasylow Apr 11, 2018
c9cb004
Fixes to conditional compilation
lwasylow Apr 11, 2018
a862b95
Fixes to new asso array during mock coverage id.
lwasylow Apr 11, 2018
57ee184
Merge pull request #641 from lwasylow/feature/12cblockcoverage
lwasylow Apr 11, 2018
4561795
Update test
lwasylow Apr 11, 2018
0556fbe
Update test
lwasylow Apr 11, 2018
b91e51d
Merge branch 'feature/12cblockcoverage' of github.com:utPLSQL/utPLSQL…
lwasylow Apr 11, 2018
d19f941
Update test/core/reporters/test_extended_coverage.pkb
lwasylow Apr 11, 2018
e2e1437
Updated html reporter to show a information about the partially cover…
lwasylow Apr 11, 2018
9261431
Updated Junit reporter to conform with Junit XSD
lwasylow Apr 13, 2018
fd2b000
Update old tests
lwasylow Apr 13, 2018
366d209
Update old tests
lwasylow Apr 13, 2018
1adf35d
Changed the way reporters events are registered.
jgebal Apr 14, 2018
a112e36
Added support for block coverage in sonar and cobertura reporters.
jgebal Apr 14, 2018
71d0b70
Fixed issues with comment-replace in big package specs.
jgebal Apr 14, 2018
8903c51
Update to junit reporter, remove synonym and wrap xunit under junit.
lwasylow Apr 14, 2018
4bdca7d
Update tests
lwasylow Apr 15, 2018
a9e2fbe
remove replace
lwasylow Apr 15, 2018
d2a9272
Updates to Junit fix.
lwasylow Apr 15, 2018
f0e2653
Clean-up and removal of unnecessary reporters
lwasylow Apr 15, 2018
4458dff
Unify reporters
lwasylow Apr 15, 2018
2027421
Update test
lwasylow Apr 15, 2018
924eb9b
Update issue with part covered being zero.
lwasylow Apr 15, 2018
a111c6d
Update for test with timestamp
lwasylow Apr 15, 2018
e629c61
Update timestamp test
lwasylow Apr 15, 2018
299be2a
Merge pull request #642 from utPLSQL/fixes/xunit_reporter
jgebal Apr 16, 2018
631a55e
Updated project version after build [skip ci]
Apr 16, 2018
2d6c7d3
Merge branch 'develop' into feature/12cblockcoverage
lwasylow Apr 16, 2018
0d69d63
Merge pull request #604 from utPLSQL/feature/12cblockcoverage
lwasylow Apr 16, 2018
ed09351
Updated project version after build [skip ci]
Apr 16, 2018
a827b94
Update coverage MD
lwasylow Apr 16, 2018
baeee4a
Added Images for covrage
lwasylow Apr 16, 2018
874d8c7
update images
lwasylow Apr 16, 2018
8617613
Updated test for comments removal to include multi-line comments with…
jgebal Apr 16, 2018
9d529f8
Merge pull request #644 from utPLSQL/feature/12ccoverage_doc
jgebal Apr 16, 2018
5b63b1e
Updated project version after build [skip ci]
Apr 16, 2018
51ba943
Updated documentation with new and changed annotations.
jgebal Apr 16, 2018
ad3f830
Changed behaviour for duplicate annotations - first wins.
jgebal Apr 19, 2018
4346b57
Updates to documentation.
jgebal Apr 20, 2018
b1ff0fc
Updates to documentation.
jgebal Apr 20, 2018
3ff247a
Fixed issue with implicit cursor
lwasylow Apr 20, 2018
5dc721f
Merge pull request #646 from lwasylow/feature/cursor_implicit
lwasylow Apr 21, 2018
788e9b4
update test name
lwasylow Apr 21, 2018
e74e87f
Merge pull request #647 from lwasylow/feature/cursor_implicit
lwasylow Apr 21, 2018
3f11a97
Update character test
lwasylow Apr 21, 2018
ba8e9e2
Update documentation and tests for implicit cursor name.
lwasylow Apr 22, 2018
ab5a1ca
Updated and extended documentation for annotations.
jgebal Apr 22, 2018
e99abf1
Merge pull request #648 from utPLSQL/feature/cursor_implicit
jgebal Apr 22, 2018
24c962b
Updated project version after build [skip ci]
Apr 22, 2018
e672ef0
Added description of `context` to annotations documentation.
jgebal Apr 22, 2018
9897247
Merge remote-tracking branch 'origin/develop' into feature/support_of…
jgebal Apr 22, 2018
b2df93e
Integrated with develop branch changes.
jgebal Apr 22, 2018
d604127
Removed empty header from documentation.
jgebal Apr 24, 2018
9afb7be
A bit of code cleanup and tests alignment.
jgebal Apr 25, 2018
8c532ce
Merge pull request #629 from utPLSQL/feature/support_of_context
jgebal Apr 25, 2018
baf8436
Updated project version after build [skip ci]
Apr 25, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
13 changes: 11 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
* export-ignore
^docs/* linguist-documentation
.gitattributes export-ignore
.gitignore export-ignore
.gitmodules export-ignore
.travis.yml export-ignore
mkdocs.yml export-ignore
.travis export-ignore
sonar-project.properties export-ignore
tests export-ignore
development export-ignore
node_modules export-ignore
^docs/* linguist-documentation
11 changes: 0 additions & 11 deletions .gitattributes.release

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ node_modules/
utPLSQL_latest_release/
utPLSQL-cli/
development/env.sh
*.log
40 changes: 25 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ env:
- CURRENT_BRANCH=${TRAVIS_BRANCH}
- UTPLSQL_REPO="utPLSQL/utPLSQL"
- UTPLSQL_BUILD_NO="${TRAVIS_BUILD_NUMBER:-0}"
- UTPLSQL_VERSION_PATTERN='v?([0-9X]+\.){3}[0-9X]+'
- UTPLSQL_VERSION_PATTERN="v?([0-9]+\.){3}[0-9]+[^']*"
- UTPLSQL_VERSION=$(. .travis/get_project_version.sh)
- UTPLSQL_BUILD_VERSION=$(. .travis/get_project_build_version.sh)
- UTPLSQL_SOURCES_DIR='source'
Expand All @@ -46,7 +46,10 @@ env:
- DOCKHER_HUB_REPO="${DOCKER_BASE_TAG:-$UT3_DOCKER_REPO}"
#utPLSQL released version directory
- UTPLSQL_DIR="utPLSQL_latest_release"
- UTPLSQL_CLI_FILE="utPLSQL-cli-develop-test3.zip"
- UTPLSQL_CLI_VERSION="3.0.4"
# Maven
- MAVEN_HOME=/usr/local/maven
- MAVEN_CFG=$HOME/.m2
matrix:
- ORACLE_VERSION="${DOCKER_TAG_11G:-11g-r2-xe}" CONNECTION_STR='127.0.0.1:1521/XE' DOCKER_OPTIONS='--shm-size=1g'
- ORACLE_VERSION="${DOCKER_TAG_12C:-12c-r1-se2}" CONNECTION_STR='127.0.0.1:1521/ORCLPDB1' DOCKER_OPTIONS="-v /dev/pdbs:/opt/oracle/oradata/pdbs"
Expand All @@ -57,6 +60,7 @@ cache:
directories:
- $CACHE_DIR
- node_modules
- $MAVEN_CFG

before_install:
#The update_project_version is done before deployment to validate that the change of project files does not break installation
Expand All @@ -68,32 +72,34 @@ before_install:
# download latest utPLSQL release
#- curl -LOk $(curl --silent https://api.github.com/repos/utPLSQL/utPLSQL/releases/latest | awk '/browser_download_url/ { print $2 }' | grep ".zip" | sed 's/"//g')
- git clone --depth=1 --branch=${SELFTESTING_BRANCH:-master} https://github.com/utPLSQL/utPLSQL.git $UTPLSQL_DIR
# download utPLSQL-cli develop
- curl -Lk -o utPLSQL-cli.zip https://bintray.com/viniciusam/utPLSQL-cli/download_file?file_path=${UTPLSQL_CLI_FILE}
# download latest utPLSQL-cli release
- curl -Lk -o utPLSQL-cli.zip https://github.com/utPLSQL/utPLSQL-cli/releases/download/v${UTPLSQL_CLI_VERSION}/utPLSQL-cli.zip

install:
#- unzip utPLSQL.zip
- unzip utPLSQL-cli.zip && chmod -R u+x utPLSQL-cli
# Get ojdbc via maven
- bash .travis/maven_cfg.sh
- pip install mkdocs
- bash .travis/install_sqlcl.sh
- sudo mkdir -p /dev/pdbs
- sudo chmod -R 777 /dev/pdbs
- if [ "${TRAVIS_TAG}" = "" ]; then bash .travis/start_db.sh; fi
- if [[ ! $TRAVIS_TAG ]]; then bash .travis/start_db.sh; fi
- df -h

before_script:
- if [ "${TRAVIS_TAG}" = "" ]; then bash .travis/install.sh; fi
- if [ "${TRAVIS_TAG}" = "" ]; then bash .travis/install_utplsql_release.sh; fi
- if [ "${TRAVIS_TAG}" = "" ]; then bash .travis/create_additional_grants_for_old_tests.sh; fi
- if [ "${TRAVIS_TAG}" = "" ]; then bash .travis/run_examples.sh; fi
- if [ "${TRAVIS_TAG}" = "" ]; then bash .travis/run_old_tests.sh; fi
- if [[ ! $TRAVIS_TAG ]]; then bash .travis/install.sh; fi
- if [[ ! $TRAVIS_TAG ]]; then bash .travis/install_utplsql_release.sh; fi
- if [[ ! $TRAVIS_TAG ]]; then bash .travis/create_additional_grants_for_old_tests.sh; fi
- if [[ ! $TRAVIS_TAG ]]; then bash .travis/run_examples.sh; fi
- if [[ ! $TRAVIS_TAG ]]; then bash .travis/run_old_tests.sh; fi

script:
- if [ "${TRAVIS_TAG}" = "" ]; then bash test/install_and_run_tests.sh; fi
- if [ "${TRAVIS_TAG}" = "" ] && [ "${TRAVIS_REPO_SLUG}" = "${UTPLSQL_REPO}" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then sonar-scanner; fi
- if [ "${TRAVIS_TAG}" = "" ]; then bash .travis/coveralls_uploader.sh; fi
- if [[ ! $TRAVIS_TAG ]]; then bash test/install_and_run_tests.sh; fi
- if [[ ! $TRAVIS_TAG ]] && [ "${TRAVIS_REPO_SLUG}" = "${UTPLSQL_REPO}" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then sonar-scanner; fi
- if [[ ! $TRAVIS_TAG ]]; then bash .travis/coveralls_uploader.sh; fi
- bash .travis/build_docs.sh
- if [ "${TRAVIS_TAG}" = "" ]; then bash .travis/push_release_version.sh; fi
- if [[ ! $TRAVIS_TAG ]]; then bash .travis/push_release_version.sh; fi
- bash .travis/push_docs_to_gh_pages.sh

before_deploy:
Expand All @@ -115,4 +121,8 @@ deploy:
condition: "${TRAVIS_JOB_NUMBER} =~ \\.1$"

notifications:
slack: utplsql:oiMuXO95TvKeAUENuDt4cPrB
slack:
rooms:
- secure: "nemt9n2y5sVCAKqa/s7JDQ8AcM59Xu/XbH/RkMOXvPgc+KtR8lBtVD1LkvJ5BaQhqgjuDT7DNt/uisQJ7k6a2OsrVFbnkypZ1hCvntOBpJyoSpD/YL1X8a9GbGojuJcph0BX76KN21LaOVdyOfY0TSlw53XiYWS8iL5HtjpWCbIwHL1SJ8JT8mhdT4hDoUWZjcZ4s4bLH6BQm4un/bMQOmB4sDoCeg4CllJwxgkswVF7OHpOFjgPetvUp7ps8b/Rj8en6zCj9drb0SVbXFgumo2Wd1bC3HHZB8MAZU0kuEV5VgUdum6EelUL5yfB72hssNQA0+CaT3HjBFkTlqWYJmjC4/xyGN3sseiW82T9FDY0g0GAGayNRW+QSiTQ1hbJEcAnNe0GrBUdRsgXdI6COd76YP5VxzRSF6H7niLfgCZdKbIivKUd1o+wBhuyJmqCFIkRWmT38tMGJqJAzbY1jq5gQXbb6E7gt+KdTjlSjcnJYf7XI7zqm+BRr+fbA0ixfXHvfqOBgZN6g08y9nPlDnIjtSF2NSdrj2zqYQAtKuWSOD1bnTyfDJyrtK7OLffZcMYD5Bcss4c8op8tP7MGTjt1S046SJocboh6H4c/nTokpoMRsWs6MKRdebl8C2RObGf5FebSOJg+oh2ZYS5Z/G9GshiY2BD/81+Hc4Miacc="
on_success: change
on_failure: always
1 change: 0 additions & 1 deletion .travis/build_release_archive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ rm -rf docs/*
# and replace it with generated html documentation from the ignored site folder
cp -r -v site/* docs

mv -f .gitattributes.release .gitattributes
git add .
git commit -m "tmp commit for building a release archive"

Expand Down
2 changes: 1 addition & 1 deletion .travis/coveralls_uploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if (process.env.COVERALLS_URL_BASE) {
url = 'https://coveralls.io/api/v1/jobs';
}

fs.readFile('../old_tests/coverage.json',function (err,data) {
fs.readFile('../coverage.json',function (err,data) {
if (err) {
return console.log(err);
}
Expand Down
10 changes: 7 additions & 3 deletions .travis/get_project_version.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
#!/usr/bin/env bash
#If building a new version from a release branch - then version is taken from release branch name

#When building a new version from a release branch, the version is taken from release branch name
if [[ "${CURRENT_BRANCH}" =~ ^release/v[0-9]+\.[0-9]+\.[0-9]+.*$ ]]; then
version=${CURRENT_BRANCH#release\/}
elif [[ "${TRAVIS_TAG}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+.*$ ]]; then
version=${TRAVIS_TAG}
else
#Otherwise, version is taken from the VERSION file
version=`cat VERSION`
#When on develop branch, add "-develop" to the version text
if [[ "${CURRENT_BRANCH}" == "develop" ]]; then
version=`sed -r "s/(v?[0-9]+\.[0-9]+\.[0-9]+).*/\1-develop/" <<< "${version}"`
fi
fi
echo ${version}
7 changes: 6 additions & 1 deletion .travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ set -ev
set feedback off
set verify off

alter session set plsql_warnings = 'ENABLE:ALL', 'DISABLE:(5004,5018,6000,6001,6003,6009,6010,7206)';
@install_headless.sql $UT3_OWNER $UT3_OWNER_PASSWORD
SQL

Expand All @@ -20,16 +21,20 @@ grant create any procedure, drop any procedure, execute any procedure to $UT3_OW

conn $UT3_OWNER/$UT3_OWNER_PASSWORD@//$CONNECTION_STR
@../development/utplsql_style_check.sql
exit
SQL

#Create additional users
"$SQLCLI" sys/$ORACLE_PWD@//$CONNECTION_STR AS SYSDBA <<-SQL
set feedback off
@create_utplsql_owner.sql $UT3_TESTER $UT3_TESTER_PASSWORD $UT3_TABLESPACE

--needed for testing distributed transactions
grant create public database link to $UT3_TESTER;
grant drop public database link to $UT3_TESTER;
set feedback on
--Needed for testing coverage outside of main UT3 schema.
grant create any procedure, drop any procedure, execute any procedure, create any type, drop any type, execute any type, under any type, select any table, update any table, insert any table, delete any table, create any table, drop any table, alter any table, select any dictionary to $UT3_TESTER;
revoke execute on dbms_crypto from $UT3_TESTER;
grant create job to $UT3_TESTER;
exit
SQL
6 changes: 5 additions & 1 deletion .travis/install_utplsql_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ end;
/
SQL

"$SQLCLI" sys/$ORACLE_PWD@//$CONNECTION_STR AS SYSDBA @install_headless.sql ${UT3_RELEASE_VERSION_SCHEMA}
"$SQLCLI" sys/$ORACLE_PWD@//$CONNECTION_STR AS SYSDBA <<SQL
alter session set plsql_warnings = 'ENABLE:ALL', 'DISABLE:(5004,5018,6000,6001,6003,6009,6010,7206)';
@install_headless.sql ${UT3_RELEASE_VERSION_SCHEMA}
exit
SQL

"$SQLCLI" sys/$ORACLE_PWD@//$CONNECTION_STR AS SYSDBA <<SQL
grant select any dictionary to ${UT3_RELEASE_VERSION_SCHEMA};
Expand Down
18 changes: 18 additions & 0 deletions .travis/maven_cfg.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash
set -ev
cp .travis/settings.xml $MAVEN_CFG/settings.xml

cd $(dirname $(readlink -f $0))

# Download wagon-http recommended by Oracle.
# On maven latest version this is not needed, but travis doesn't have it.
if [ ! -f $CACHE_DIR/wagon-http-2.8-shaded.jar ]; then
curl -L -O "http://central.maven.org/maven2/org/apache/maven/wagon/wagon-http/2.8/wagon-http-2.8-shaded.jar"
mv wagon-http-2.8-shaded.jar $CACHE_DIR/
sudo cp $CACHE_DIR/wagon-http-2.8-shaded.jar $MAVEN_HOME/lib/ext/
else
echo "Using cached wagon-http..."
sudo cp $CACHE_DIR/wagon-http-2.8-shaded.jar $MAVEN_HOME/lib/ext/
fi

mvn dependency:copy-dependencies -DoutputDirectory=../utPLSQL-cli/lib
62 changes: 62 additions & 0 deletions .travis/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<!--Used to obtain ojdbc8 and orai18n files that are needed for client-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.utplsql</groupId>
<artifactId>utplsql</artifactId>
<version>3.0.4-SNAPSHOT</version>
<packaging>jar</packaging>

<name>utPLSQL</name>
<url>https://github.com/utPLSQL/utPLSQL</url>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
<dependency>
<groupId>com.oracle.jdbc</groupId>
<artifactId>ojdbc8</artifactId>
<version>12.2.0.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.oracle.jdbc</groupId>
<artifactId>orai18n</artifactId>
<version>12.2.0.1</version>
<scope>compile</scope>
</dependency>
</dependencies>

<repositories>
<repository>
<id>maven.oracle.com</id>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<url>https://maven.oracle.com</url>
<layout>default</layout>
</repository>
</repositories>

<pluginRepositories>
<pluginRepository>
<id>maven.oracle.com</id>
<url>https://maven.oracle.com</url>
</pluginRepository>
</pluginRepositories>

<build>
<extensions>
<extension>
<groupId>io.packagecloud.maven.wagon</groupId>
<artifactId>maven-packagecloud-wagon</artifactId>
<version>0.0.6</version>
</extension>
</extensions>
</build>
</project>
16 changes: 9 additions & 7 deletions .travis/push_docs_to_gh_pages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,16 @@ if [[ "${TRAVIS_JOB_NUMBER}" =~ \.1$ ]]; then
mkdir -p develop
rm -rf develop/**./* || exit 0
cp -a ../docs/. ./develop
# If a Tagged Build then copy to it's own directory as well.
# If a Tagged Build then copy to it's own directory as well and to the 'latest' release directory
if [ -n "$TRAVIS_TAG" ]; then
echo "Creating ${UTPLSQL_VERSION}"
mkdir -p ${UTPLSQL_VERSION}
rm -rf ${UTPLSQL_VERSION}/**./* || exit 0
cp -a ../docs/. ${UTPLSQL_VERSION}
echo "Populating 'latest' directory"
mkdir -p latest
rm -rf latest/**./* || exit 0
cp -a ../docs/. latest
fi
# Stage changes for commit
git add .
Expand All @@ -69,7 +73,6 @@ if [[ "${TRAVIS_JOB_NUMBER}" =~ \.1$ ]]; then
fi
#Changes where detected, so we need to update the version log.
now=$(date +"%d %b %Y - %r")
export latest=" - [Latest development version](develop/) - Created $now"
if [ ! -f index.md ]; then
echo "---" >>index.md
echo "layout: default" >>index.md
Expand All @@ -85,13 +88,12 @@ if [[ "${TRAVIS_JOB_NUMBER}" =~ \.1$ ]]; then
fi
#If build running on a TAG - it's a new release - need to add it to documentation
if [ -n "${TRAVIS_TAG}" ]; then
latest_release=" [${TRAVIS_TAG} documentation](${UTPLSQL_VERSION}/) - Created $now"
sed -i '7s@.*@'" - Latest release: ${latest_release}"'@' index.md
#add entry to the end of file - ## Released Version Doc History
echo "- ${latest_release}">>index.md
sed -i '7s@.*@'" - [Latest ${TRAVIS_TAG} documentation](latest/) - Created $now"'@' index.md
#add entry to the top of version history (line end of file - ## Released Version Doc History
sed -i '12i'" - [${TRAVIS_TAG} documentation](${UTPLSQL_VERSION}/) - Created $now" index.md
fi
#replace 4th line in log
sed -i '8s@.*@'"${latest}"'@' index.md
sed -i '8s@.*@'" - [Latest development version](develop/) - Created $now"'@' index.md
#Add and Commit the changes back to pages repo.
git add .
git commit -m "Deploy to gh-pages branch: base commit ${SHA}"
Expand Down
21 changes: 12 additions & 9 deletions .travis/push_release_version.sh
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
#!/usr/bin/env bash

echo Current branch is "${CURRENT_BRANCH}"
if [[ "${CURRENT_BRANCH}" =~ ^release/v[0-9]+\.[0-9]+\.[0-9]+.*$ ]]; then

# We are updating version number only when:
# - not a pull request
# - branch name is = develop or branch name is like release/vX.X.X...
if [ "${TRAVIS_REPO_SLUG}" = "${UTPLSQL_REPO}" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [[ "${CURRENT_BRANCH}" =~ ^(release/v[0-9]+\.[0-9]+\.[0-9]+.*|develop)$ ]]; then
echo Current branch is "${CURRENT_BRANCH}"
echo Current job number is "${TRAVIS_JOB_NUMBER}"
#The publishing is done only once (for first job on a build matrix)
if [[ "${TRAVIS_JOB_NUMBER}" =~ \.1$ ]]; then
echo Publishing will be done for a job no. "${TRAVIS_JOB_NUMBER}"
echo "Committing version & buildNo into branch (${CURRENT_BRANCH})"
git add sonar-project.properties
git add VERSION
git commit -m 'Updated project version after building a release [skip ci]'

echo Pushing to origin
git add source/*
git commit -m 'Updated project version after build [skip ci]'
echo "Pushing to origin"
git push --quiet origin HEAD:${CURRENT_BRANCH}
else
echo Publishing will not be done for a job no.: "${TRAVIS_JOB_NUMBER}"
echo "Publishing of version skipped for job No.: ${TRAVIS_JOB_NUMBER}"
fi
else
echo Not on a release branch - skipping publishing of version
echo "Publishing of version skipped for branch ${CURRENT_BRANCH}, pull request ${TRAVIS_PULL_REQUEST}"
fi
Loading