Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
260 commits
Select commit Hold shift + click to select a range
27e842e
#658 file split to two
May 4, 2018
f33dd27
added for #658
May 4, 2018
3121382
updated section for other users due to changes introduced in #658
May 4, 2018
f43b76e
Added missing objects to avoid errors when new installation is not pe…
May 4, 2018
8a33c25
Update documentation
lwasylow May 4, 2018
8e8c3e6
changed user to execute user grants
May 4, 2018
629d3c7
Fixed installation order to eliminate compilation error warning
Pazus May 5, 2018
98b0401
Removed warnings from install script
Pazus May 5, 2018
0fc68d1
Update order by to be done before max row nums are pulled
lwasylow May 5, 2018
7f3d12e
Updated join by
lwasylow May 5, 2018
b8840a1
Updated join by
lwasylow May 5, 2018
8133f11
Merge branch 'feature/cursor_pk_join' of github.com:lwasylow/utPLSQL …
lwasylow May 6, 2018
6a552e5
Merge pull request #661 from Pazus/bug/fix-installation-order
jgebal May 7, 2018
aaa0cc4
Update to sort random order cause of optimizer
lwasylow May 7, 2018
a5f33c1
Fixed the errors with timestamp in tests
AlexisGaldamez May 7, 2018
7f8eb65
Updated project version after build [skip ci]
May 7, 2018
83f2792
Merge branch 'develop' into fixed_timestamp_error
jgebal May 7, 2018
abf5124
Merge pull request #662 from AlexisGaldamez/fixed_timestamp_error
jgebal May 7, 2018
4cf39ac
Merge branch 'develop' into bugfix/non_sysdba_install
jgebal May 7, 2018
b30ce47
Updated project version after build [skip ci]
May 7, 2018
784c509
Update pk join cursor
lwasylow May 9, 2018
fdff62a
Merge branch 'develop' of github.com:lwasylow/utPLSQL into feature/cu…
lwasylow May 9, 2018
f268168
Merge branch 'develop' into bugfix/non_sysdba_install
May 10, 2018
ac042d0
Added failure on missing join by key in cursor.
lwasylow May 10, 2018
38aba43
Added unique key name as part of compare results
lwasylow May 10, 2018
66974e0
Added unique key name as part of compare results
lwasylow May 10, 2018
0fd8be8
Revert "Initial check in of unordered comparision"
lwasylow May 11, 2018
1bf5bad
Update blank line
lwasylow May 11, 2018
278dc68
Merge branch 'feature/cursor_pk_join' of github.com:lwasylow/utPLSQL …
lwasylow May 11, 2018
846f76a
Fixes to bug introduced in revision
lwasylow May 12, 2018
ed952eb
Added cleanup for test
lwasylow May 12, 2018
e544921
Updated test name
lwasylow May 12, 2018
1323ac1
Merge pull request #667 from lwasylow/fix/reporterclassname
lwasylow May 12, 2018
d9f09f0
Updated project version after build [skip ci]
May 12, 2018
d1dc6e1
Fixes issue when in failure message appears a special characters or a…
lwasylow May 12, 2018
75f69e1
Merge branch 'develop' of github.com:lwasylow/utPLSQL into fix/caterc…
lwasylow May 12, 2018
379276a
Merge branch 'develop' into bugfix/non_sysdba_install
jgebal May 12, 2018
37ed91f
Merge pull request #668 from lwasylow/fix/catercddata
Pazus May 12, 2018
6a79ade
Merge branch 'develop' into bugfix/non_sysdba_install
jgebal May 12, 2018
61066a9
Merge pull request #660 from pocelka/bugfix/non_sysdba_install
jgebal May 12, 2018
f59b62f
Updated project version after build [skip ci]
May 12, 2018
5244887
Update issue with xml special chars in failure.
lwasylow May 12, 2018
9a0a729
Merge pull request #669 from lwasylow/develop
jgebal May 12, 2018
ec258dc
Merge branch 'develop' of github.com:lwasylow/utPLSQL into feature/cu…
lwasylow May 12, 2018
5eeb7f6
Merge branch 'develop' of github.com:lwasylow/utPLSQL into feature/cu…
lwasylow May 12, 2018
e7663b6
Updated project version after build [skip ci]
May 12, 2018
ad345f1
Merge branch 'develop' of https://github.com/utPLSQL/utPLSQL into fea…
lwasylow May 12, 2018
347de21
Added option to run invalid package specs due to broken dependencies …
lwasylow May 12, 2018
9923d28
Merge branch 'develop' of github.com:lwasylow/utPLSQL into invalidspecs
lwasylow May 12, 2018
23d3b86
Added tests to cover invalid specs scenarios
lwasylow May 13, 2018
85f17aa
Old Tests been moved already to new test and is no longer valid as pa…
lwasylow May 13, 2018
5c894c6
Merge branch 'develop' of https://github.com/utPLSQL/utPLSQL into fea…
lwasylow May 12, 2018
44cbcc8
Merge branch 'feature/cursor_pk_join' of github.com:lwasylow/utPLSQL …
lwasylow May 13, 2018
95cf9f9
fix typos in test descriptions ("tested" instead of "tesed")
PhilippSalvisberg May 15, 2018
d0a1aac
Merge pull request #671 from PhilippSalvisberg/bugfix/fix_typo_in_ann…
jgebal May 15, 2018
9795992
Updated project version after build [skip ci]
May 15, 2018
cc718d9
Added changes to cater for nested tables
lwasylow May 17, 2018
61a334a
Merge branch 'develop' of github.com:utPLSQL/utPLSQL into feature/cur…
lwasylow May 17, 2018
77e4468
Updated code with a new display
lwasylow May 22, 2018
a7f167c
Update to handle new line in xmltype that caused pk value being retur…
lwasylow May 22, 2018
9d5b915
ut_suite_builder modified to allow multi call to procedures in the be…
AlexisGaldamez May 22, 2018
b457d69
Updates to the ordering of sets to get consistent results.
lwasylow May 23, 2018
7577a95
Revert "Updates to the ordering of sets to get consistent results."
lwasylow May 23, 2018
890c1d2
Refactoring to simplify code
lwasylow May 23, 2018
4d8b964
Revert "Revert "Updates to the ordering of sets to get consistent res…
lwasylow May 23, 2018
d7efff6
Merge branch 'develop' of github.com:lwasylow/utPLSQL into invalidspecs
lwasylow May 24, 2018
0d87f4f
Update to tests
lwasylow May 24, 2018
2476c80
Merge pull request #670 from lwasylow/invalidspecs
jgebal May 24, 2018
c8bea7d
Updated project version after build [skip ci]
May 24, 2018
f77f13a
Update to test and docs
lwasylow May 24, 2018
2f662ed
Merge branch 'develop' into feature/cursor_pk_join
jgebal May 24, 2018
3acfb6c
Merge pull request #666 from utPLSQL/feature/cursor_pk_join
jgebal May 25, 2018
46ac6a2
Updated project version after build [skip ci]
May 25, 2018
86a4f09
Fixes to compare when it trying to get anydata out of collection
lwasylow May 27, 2018
48cfc2a
update to test as it order diffrent in xml between versions 11 and 12.2
lwasylow May 27, 2018
3273b2f
Switching build to run tests on itself.
lwasylow May 27, 2018
0c4c254
Merge pull request #680 from utPLSQL/fix_pk_join
jgebal May 28, 2018
8e0f65b
Updated project version after build [skip ci]
May 28, 2018
004b14c
Updated html tags
lwasylow May 29, 2018
1175203
Document a bug with capturing DBMS_OUTPUT before test run.
jgebal May 30, 2018
e53b01e
Fixed a bug with capturing DBMS_OUTPUT before test run.
jgebal May 30, 2018
30dc6f8
Adding validation to html doc and fixing some minor issues around htm…
lwasylow May 31, 2018
61d5351
Merge pull request #686 from utPLSQL/bugfix/dbms_output_capture_befor…
jgebal May 31, 2018
ec82192
Update with missing FI
lwasylow May 31, 2018
b94cae8
Updated project version after build [skip ci]
May 31, 2018
6017d09
Syntax error
lwasylow May 31, 2018
a1ee462
Merge branch 'develop' into fix/invalid_html_tag
lwasylow May 31, 2018
4918699
Display errors in console
lwasylow May 31, 2018
aba7114
Display errors in console
lwasylow May 31, 2018
ffd23f7
Wrap into quote to keep new lines
lwasylow May 31, 2018
28abedb
Merge pull request #683 from utPLSQL/fix/invalid_html_tag
jgebal May 31, 2018
b691505
Updated project version after build [skip ci]
May 31, 2018
5e5fea4
tests improved
AlexisGaldamez May 31, 2018
b756e71
Merge branch 'develop' of https://github.com/utPLSQL/utPLSQL into all…
AlexisGaldamez May 31, 2018
87b2284
Fixed a gap in documentation - grants needed for DBMS_CRYPTO
jgebal Jun 1, 2018
d13a9a1
Merge pull request #688 from utPLSQL/bugfix/install_requirements_docu…
jgebal Jun 1, 2018
c5bc73e
Updated project version after build [skip ci]
Jun 1, 2018
76dab88
Change installation test order
AlexisGaldamez Jun 1, 2018
8e8f69d
Merge branch 'develop' into allow_multi_before_after_procedures
AlexisGaldamez Jun 1, 2018
b44e879
Enable new throws by exception , variable etc.
lwasylow Jun 1, 2018
2427a3a
Added additional tests
lwasylow Jun 1, 2018
02af1cc
Merge branch 'develop' of github.com:utPLSQL/utPLSQL into feature/ena…
lwasylow Jun 1, 2018
f4b1692
Update docs
lwasylow Jun 1, 2018
c7e7eb2
Refactored code.
jgebal Jun 4, 2018
9e55e99
Documentation improvements
jgebal Jun 4, 2018
9847364
Added support for warnings on `--%throws` annotation
jgebal Jun 4, 2018
71e940c
Merge pull request #689 from utPLSQL/feature/enable_throw_variable
jgebal Jun 4, 2018
1373583
Updated project version after build [skip ci]
Jun 4, 2018
f06bd0a
Split uninstall script into smaller, independent pieces.
jgebal Jun 5, 2018
e94bd68
Merge pull request #690 from utPLSQL/feature/uninstall_improvements
jgebal Jun 5, 2018
c85f823
Updated project version after build [skip ci]
Jun 5, 2018
81c5908
Fixed typo in coverage documentation.
jgebal Jun 5, 2018
eb1088e
Merge pull request #691 from utPLSQL/bugfix/doc_typo
jgebal Jun 5, 2018
16a7632
Updated project version after build [skip ci]
Jun 6, 2018
36a3f22
Added XML Validation
lwasylow Jun 6, 2018
0dfa7a2
Update folder structure
lwasylow Jun 6, 2018
4f8caa4
Fixed running single test procedure in context by path
jgebal Jun 7, 2018
79330f7
Update
lwasylow Jun 7, 2018
21a74fc
Fixing wrong path
lwasylow Jun 7, 2018
7f2d63c
Commit update path and see debug path
lwasylow Jun 7, 2018
d0ea705
upate paths
lwasylow Jun 7, 2018
1acf150
Debug test
lwasylow Jun 7, 2018
ad26c1a
Update
lwasylow Jun 7, 2018
934e991
Update xml validation file
lwasylow Jun 7, 2018
c44e0e6
Incorrect call to schema
lwasylow Jun 7, 2018
1b3e0bd
Update Path
lwasylow Jun 7, 2018
053d611
Merge pull request #694 from utPLSQL/xmlvalidation
lwasylow Jun 7, 2018
19c6730
Updated project version after build [skip ci]
Jun 7, 2018
3e709fb
Updated project version after build [skip ci]
Jun 7, 2018
e6ad899
Merge branch 'develop' into allow_multi_before_after_procedures
AlexisGaldamez Jun 10, 2018
641c9f9
Removed leftover XUNIT test package body.
jgebal Jun 10, 2018
fe90466
Added support for `a_client_character_set`
jgebal Jun 10, 2018
5b33d2f
Fixed coveralls reporting issue with long packages.
jgebal Jun 10, 2018
ecae542
Fixed failing tests and added additional test for missing coverage.
jgebal Jun 10, 2018
7943b57
Removed obsolete old tests.
jgebal Jun 10, 2018
435ddf9
Reworked unit tests.
jgebal Jun 12, 2018
6ac9e77
Merge pull request #1 from utPLSQL/allow_multi_before_after_procedures
AlexisGaldamez Jun 12, 2018
49b5fba
Added support for charset in HTML reports.
jgebal Jun 12, 2018
ee8e0c4
Merge pull request #695 from utPLSQL/feature/context_improvements
jgebal Jun 12, 2018
722498d
Merge branch 'develop' into feature/include_encoding_in_xml_and_html
jgebal Jun 12, 2018
7d26df3
Updated project version after build [skip ci]
Jun 12, 2018
68cb81e
Merge pull request #697 from utPLSQL/feature/include_encoding_in_xml_…
jgebal Jun 12, 2018
e3a9edd
Merge branch 'develop' into allow_multi_before_after_procedures
jgebal Jun 12, 2018
2d80c80
Updated project version after build [skip ci]
Jun 12, 2018
b64449b
Merge branch 'develop' into allow_multi_before_after_procedures
jgebal Jun 13, 2018
39882f1
Merge pull request #677 from AlexisGaldamez/allow_multi_before_after_…
jgebal Jun 13, 2018
74f11e2
Updated project version after build [skip ci]
Jun 13, 2018
a5fe6f9
Updated documentation for beforetest/aftertest
jgebal Jun 13, 2018
fc9b46f
Merge pull request #699 from utPLSQL/feature/beforetest_doc_update
jgebal Jun 14, 2018
7afc6ef
Updated project version after build [skip ci]
Jun 14, 2018
c54c14b
Trigger subbuild on develop
lwasylow Jul 8, 2018
7729954
update
lwasylow Jul 8, 2018
27a361c
Update if
lwasylow Jul 8, 2018
4c6476b
Changed printing of messages to be directed to STDERR rather than STD…
jgebal Jul 8, 2018
e4823b0
Testing deploy stages
jgebal Jul 8, 2018
4b2062d
Moved mkdocs to `deploy` stage.
jgebal Jul 8, 2018
be15dc6
Merge pull request #702 from utPLSQL/trigger_subbuilds
jgebal Jul 8, 2018
b3f4456
Fixed issue with references to `TRAVIS_JOB_NUMBER` in scripts.
jgebal Jul 8, 2018
90b9db9
Fixing `travis.yml` config
jgebal Jul 8, 2018
a3db2a5
Update `travis.yml` config.
jgebal Jul 8, 2018
50bacde
Resolves #649
jgebal Jul 8, 2018
6ece42c
Added additional test for mixed use case of before/after on both proc…
jgebal Jul 8, 2018
02468f2
Updated documentation for before/after annotations to indicate that:
jgebal Jul 8, 2018
31f3abf
Merge pull request #703 from utPLSQL/trigger_subbuilds
jgebal Jul 8, 2018
482b803
Merge branch 'develop' into feature/parameters_for_before_after_annot…
jgebal Jul 8, 2018
d883acf
Added missing update of project version before pushing it to develop …
jgebal Jul 8, 2018
40e1673
Adding missing git config to deploy stage.
jgebal Jul 8, 2018
1dd59b0
Updated project version after build [skip ci]
Jul 8, 2018
1d65abf
Reverting rest-runner config change.
jgebal Jul 8, 2018
a154b1d
Removed unnieeded git config from default stage.
jgebal Jul 8, 2018
2825cbf
Merge branch 'develop' into feature/parameters_for_before_after_annot…
jgebal Jul 8, 2018
f0c90dd
Updated project version after build [skip ci]
Jul 8, 2018
e51c424
Resolves #693
jgebal Jul 9, 2018
1b4df16
Resolves #675
jgebal Jul 9, 2018
9f7ad6e
Merge pull request #704 from utPLSQL/feature/parameters_for_before_af…
jgebal Jul 9, 2018
74f3ee6
Merge pull request #705 from utPLSQL/feature/add_pre_install_checks
jgebal Jul 9, 2018
064aedb
Merge pull request #706 from utPLSQL/feature/autocmplete_ide_support_…
jgebal Jul 9, 2018
4fca43e
Updated project version after build [skip ci]
Jul 9, 2018
93a45d2
Added support for BLOB/CLOB in `ut_be_empty`
jgebal Jul 11, 2018
ac92156
Update of `sonarcloud.io` badge and url.
jgebal Jul 11, 2018
8846415
Added `df -h` before download and start of oracle docker image.
jgebal Jul 11, 2018
9709277
Updated project version after build [skip ci]
Jul 11, 2018
1e8c448
Merge pull request #709 from utPLSQL/feature/blob_clob_is_empty
jgebal Jul 11, 2018
c5f640b
Updated project version after build [skip ci]
Jul 11, 2018
efb2e11
Initial checkin
lwasylow Jul 12, 2018
30563d9
Adding sonar branch and PR analysis
lwasylow Jul 12, 2018
34db68c
Add sonar scanner to branches
lwasylow Jul 12, 2018
d505dfe
Added Sonnar branches
lwasylow Jul 12, 2018
bf00103
Fixes around syntax and adding a pull request token and properties
lwasylow Jul 12, 2018
2d09f43
Update sonar properties
lwasylow Jul 12, 2018
5657463
Update build to include pull requests
lwasylow Jul 12, 2018
81a1010
Allow to run analysis on all branches
lwasylow Jul 12, 2018
8ee2abe
update
lwasylow Jul 12, 2018
9be330f
Test Sonar short lived branches analysis
lwasylow Jul 12, 2018
dc2ddc2
Remove test line
lwasylow Jul 12, 2018
36b828f
Update PR build number
lwasylow Jul 12, 2018
001daf4
Test
lwasylow Jul 12, 2018
e27987b
Added unshallow option
lwasylow Jul 12, 2018
a8fa36c
Remove test line
lwasylow Jul 12, 2018
429760b
fix check_object_grants bug on all_tab_privs.
Pazus Jul 14, 2018
71a4d33
Merge pull request #711 from utPLSQL/build/sonarpr
jgebal Jul 14, 2018
91c4b13
Updated project version after build [skip ci]
Jul 14, 2018
08af76b
update test and docs
lwasylow Jul 15, 2018
fa06869
Merge branch 'develop' of github.com:utPLSQL/utPLSQL into feature/com…
lwasylow Jul 15, 2018
6fcb366
Cleanup of `ut_executable` - made come code private.
jgebal Jul 8, 2018
331ff92
Removed unused code from `ut_curr_usr_compound_helper`
jgebal Jul 9, 2018
2f39237
Added tests for `ut_executable`.
jgebal Jul 10, 2018
3e052e7
Fixed newline in `ut_executable` for dbms_output.
jgebal Jul 14, 2018
01e1000
Fixed newline in `ut_executable` for dbms_output.
jgebal Jul 14, 2018
ce9f520
Removed duplicated old tests. Moved functionality from old tests to ut3.
jgebal Jul 15, 2018
f0b2ddf
Fixed issue with case statement.
jgebal Jul 15, 2018
4ee9e7c
Merge branch 'develop' into bugfix/check_object_grants
jgebal Jul 16, 2018
2a9337b
Merge pull request #713 from Pazus/bugfix/check_object_grants
jgebal Jul 16, 2018
50204ce
Updated project version after build [skip ci]
Jul 16, 2018
a1007e4
Updated documentation.
jgebal Jul 16, 2018
512bb1c
Merge pull request #718 from utPLSQL/feature/update_trows_documentation
jgebal Jul 16, 2018
fbd4514
Added reporting of warnings for unknown annotations.
jgebal Jul 16, 2018
26faed2
Updated project version after build [skip ci]
Jul 16, 2018
dc49e49
Fixed issue with sonar scanner failing on PRs from other repositories.
jgebal Jul 16, 2018
28f05e1
Merge pull request #719 from utPLSQL/feature/warning_on_unknown_annot…
jgebal Jul 17, 2018
48ea16a
Updated project version after build [skip ci]
Jul 17, 2018
60c0097
Merge branch 'develop' into feature/cleanup_code_and_tests_a_bit
jgebal Jul 17, 2018
2470ee2
Update sonar PR external
lwasylow Jul 17, 2018
9cc08bd
Merge branch 'develop' of github.com:utPLSQL/utPLSQL into feature/dis…
lwasylow Jul 17, 2018
6161eae
Merge branch 'develop' of github.com:utPLSQL/utPLSQL into feature/com…
lwasylow Jul 17, 2018
49ae427
Updates to code, move the Coma separated list into ut_runner.
lwasylow Jul 17, 2018
d7c53a6
Update .travis.yml
jgebal Jul 17, 2018
d646fc5
Merge pull request #722 from utPLSQL/bugfix/travis_java8_build_failures
jgebal Jul 17, 2018
def4e8d
Merge branch 'develop' into feature/coma_list
jgebal Jul 17, 2018
0dda7d2
Merge branch 'develop' into feature/disable_sonar_pr_from_others
jgebal Jul 17, 2018
0e7f137
Updated project version after build [skip ci]
Jul 17, 2018
9e64140
Merge pull request #710 from utPLSQL/feature/coma_list
jgebal Jul 18, 2018
bf686c2
Updated project version after build [skip ci]
Jul 18, 2018
d6aeef8
Update if statment
lwasylow Jul 18, 2018
bd22fe2
Merge branch 'feature/disable_sonar_pr_from_others' of github.com:utP…
lwasylow Jul 18, 2018
2717e97
Merge branch 'develop' into feature/disable_sonar_pr_from_others
lwasylow Jul 18, 2018
db969b6
Merge pull request #720 from utPLSQL/feature/disable_sonar_pr_from_ot…
jgebal Jul 18, 2018
e84ce73
Updated project version after build [skip ci]
Jul 18, 2018
0e0d2dc
Merge branch 'develop' into feature/cleanup_code_and_tests_a_bit
Jul 18, 2018
ed1c9e1
Merge pull request #714 from utPLSQL/feature/cleanup_code_and_tests_a…
jgebal Jul 18, 2018
34fdc57
Updated project version after build [skip ci]
Jul 18, 2018
e7fba34
Update VERSION
jgebal Jul 19, 2018
fa9de56
Fixed flaky test.
jgebal Jul 19, 2018
5bac98e
Updated project version after build [skip ci]
Jul 19, 2018
b69c89b
Update annotations.md
jgebal Jul 19, 2018
f09ad29
Updated project version after build [skip ci]
Jul 19, 2018
5c02105
Updated lints to cheat-sheets.
jgebal Jul 20, 2018
fb48213
Updated project version after build [skip ci]
Jul 20, 2018
05ea7d4
Updated `releasing.md`
jgebal Jul 22, 2018
1bdb86c
Updated project version after build [skip ci]
Jul 22, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 46 additions & 38 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,13 @@ addons:
apt:
packages:
- unzip
# Java8 Required for Sonar and SQLCL
- oracle-java8-installer
- oracle-java8-set-default
# Java9 Required for Sonar and SQLCL
- oracle-java9-installer
- oracle-java9-set-default
sonarcloud:
organization: utplsql
token:
secure: ${SONAR_TOKEN}
branches:
- develop
- master

services:
- docker
Expand Down Expand Up @@ -46,14 +43,14 @@ env:
- DOCKHER_HUB_REPO="${DOCKER_BASE_TAG:-$UT3_DOCKER_REPO}"
#utPLSQL released version directory
- UTPLSQL_DIR="utPLSQL_latest_release"
- SELFTESTING_BRANCH="develop"
- SELFTESTING_BRANCH=${TRAVIS_BRANCH}
- UTPLSQL_CLI_VERSION="3.1.0"
# 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"
- 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"
- ORACLE_VERSION="${DOCKER_TAG_12C2:-12c-r2-se2}" CONNECTION_STR='127.0.0.1:1521/ORCLPDB1' DOCKER_OPTIONS="-v /dev/pdbs:/opt/oracle/oradata/pdbs"

cache:
Expand All @@ -64,12 +61,10 @@ cache:
- $MAVEN_CFG

before_install:
#The update_project_version is done before deployment to validate that the change of project files does not break installation
#The update_project_version.sh is done before deployment to validate that the change of project files does not break installation
- bash .travis/update_project_version.sh
- git config --global user.email "builds@travis-ci.com"
- git config --global user.name "${UTPLSQL_BUILD_USER_NAME}"
- git remote rm origin
- git remote add origin https://${github_api_token}@github.com/${UTPLSQL_REPO}
#Allow for sonar to blame issues
- git fetch --unshallow
# 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
Expand All @@ -81,49 +76,62 @@ install:
- 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
- df -h
- 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

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/validate_report_files.sh; fi
- if [[ ! $TRAVIS_TAG ]] && [ "${TRAVIS_REPO_SLUG}" = "${UTPLSQL_REPO}" ]; then bash .travis/run_sonar_scanner.sh; 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
- bash .travis/push_docs_to_gh_pages.sh

before_deploy:
- bash .travis/build_release_archive.sh

deploy:
provider: releases
api_key: $github_api_token
file:
- utPLSQL.zip
- utPLSQL.tar.gz
- utPLSQL.zip.md5
- utPLSQL.tar.gz.md5
skip_cleanup: true
on:
repo: ${UTPLSQL_REPO}
tags: true
# when building from a release tag, use only first job "#xxx.1" to publish artifacts
condition: "${TRAVIS_JOB_NUMBER} =~ \\.1$"

notifications:
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

jobs:
include:
- stage: deploy
env: ORACLE_VERSION="none"
before_install: skip
install:
- pip install mkdocs
before_script: skip
script:
- if [[ ($TRAVIS_BRANCH == develop) && ($TRAVIS_PULL_REQUEST == false) ]]; then bash .travis/trigger_travis.sh $TRAVIS_ACCESS_TOKEN; fi
- #The update_project_version.sh needs to be done before pushing changes to develop branch
- bash .travis/update_project_version.sh
- git config --global user.email "builds@travis-ci.com"
- git config --global user.name "${UTPLSQL_BUILD_USER_NAME}"
- git remote rm origin
- git remote add origin https://${github_api_token}@github.com/${UTPLSQL_REPO}
- if [[ ! $TRAVIS_TAG ]]; then bash .travis/push_release_version.sh; fi
- bash .travis/build_docs.sh
- bash .travis/push_docs_to_gh_pages.sh
before_deploy:
- bash .travis/build_release_archive.sh
deploy:
provider: releases
api_key: $github_api_token
file:
- utPLSQL.zip
- utPLSQL.tar.gz
- utPLSQL.zip.md5
- utPLSQL.tar.gz.md5
skip_cleanup: true
on:
repo: ${UTPLSQL_REPO}
tags: true
23 changes: 0 additions & 23 deletions .travis/create_additional_grants_for_old_tests.sh

This file was deleted.

58 changes: 58 additions & 0 deletions .travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,37 @@ alter session set plsql_warnings = 'ENABLE:ALL', 'DISABLE:(5004,5018,6000,6001,6
@install_headless.sql $UT3_OWNER $UT3_OWNER_PASSWORD
SQL

#uninstall core of utplsql
"$SQLCLI" sys/$ORACLE_PWD@//$CONNECTION_STR AS SYSDBA <<-SQL
set feedback off
set verify off

@uninstall_all.sql $UT3_OWNER
declare
v_leftover_objects_count integer;
begin
select sum(cnt)
into v_leftover_objects_count
from (select count(1) cnt from dba_objects where owner = '$UT3_OWNER'
union all
select count(1) cnt from dba_synonyms where table_owner = '$UT3_OWNER'
);
if v_leftover_objects_count > 0 then
raise_application_error(-20000, 'Not all objects were successfully uninstalled - leftover objects count='||v_leftover_objects_count);
end if;
end;
/
SQL

#reinstall core of utplsql
"$SQLCLI" sys/$ORACLE_PWD@//$CONNECTION_STR AS SYSDBA <<-SQL
set feedback off
set verify off

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

#additional privileges to run scripted tests
"$SQLCLI" sys/$ORACLE_PWD@//$CONNECTION_STR AS SYSDBA <<-SQL
set feedback on
Expand Down Expand Up @@ -38,3 +69,30 @@ revoke execute on dbms_crypto from $UT3_TESTER;
grant create job to $UT3_TESTER;
exit
SQL

#additional privileges to run tests
"$SQLCLI" sys/$ORACLE_PWD@//$CONNECTION_STR AS SYSDBA <<-SQL
set feedback on
--needed for Mystats script to work
grant select any dictionary to $UT3_OWNER;
--Needed for testing a coverage outside ut3_owner.
grant create any procedure, drop any procedure, execute any procedure to $UT3_OWNER;

exit
SQL

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

exit
SQL

#Grant UT3 framework to UT3$USER#
"$SQLCLI" sys/$ORACLE_PWD@//$CONNECTION_STR AS SYSDBA <<-SQL
set feedback off
@create_user_grants.sql $UT3_OWNER $UT3_USER

exit
SQL
Binary file added .travis/lib/xml_validator.jar
Binary file not shown.
150 changes: 74 additions & 76 deletions .travis/push_docs_to_gh_pages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,87 +17,85 @@ PAGES_TARGET_BRANCH="gh-pages"
LATEST_DOCS_BRANCH="develop"
# TRAVIS_* variables are set by travis directly and only need to be if testing externally

# Since we are running job matrix, only thie first job slave will need to do the work
if [[ "${TRAVIS_JOB_NUMBER}" =~ \.1$ ]]; then
# We don't want a pull request automatically updating the repository
if [ "$TRAVIS_PULL_REQUEST" == "false" ] && { [ "${CURRENT_BRANCH}" == "${LATEST_DOCS_BRANCH}" ] || [ -n "${TRAVIS_TAG}" ]; }; then
# We don't want a pull request automatically updating the repository
if [ "$TRAVIS_PULL_REQUEST" == "false" ] && { [ "${CURRENT_BRANCH}" == "${LATEST_DOCS_BRANCH}" ] || [ -n "${TRAVIS_TAG}" ]; }; then

# ENV Variable checks are to help with configuration troubleshooting, they silently exit with unique message.
# Anyone one of them not set can be used to turn off this functionality.
# ENV Variable checks are to help with configuration troubleshooting, they silently exit with unique message.
# Anyone one of them not set can be used to turn off this functionality.

# If a version of the project is not defined
[[ -n "${UTPLSQL_VERSION}" ]] || { echo "variable UTPLSQL_VERSION is not defines or missing value"; exit 0; }
# Fail if the markdown documentation is not present.
[[ -f ./docs/index.md ]] || { echo "file docs/index.md not found"; exit 1; }
# If a version of the project is not defined
[[ -n "${UTPLSQL_VERSION}" ]] || { echo "variable UTPLSQL_VERSION is not defines or missing value"; exit 0; }
# Fail if the markdown documentation is not present.
[[ -f ./docs/index.md ]] || { echo "file docs/index.md not found"; exit 1; }

# Save some useful information
SHA=`git rev-parse --verify HEAD`
# Save some useful information
SHA=`git rev-parse --verify HEAD`

# clone the repository and switch to PAGES_TARGET_BRANCH branch
mkdir pages
cd pages
git clone https://${github_api_token}@github.com/${UTPLSQL_REPO} .
# clone the repository and switch to PAGES_TARGET_BRANCH branch
mkdir pages
cd pages
git clone https://${github_api_token}@github.com/${UTPLSQL_REPO} .

PAGES_BRANCH_EXISTS=$(git ls-remote --heads origin ${PAGES_TARGET_BRANCH})
PAGES_BRANCH_EXISTS=$(git ls-remote --heads origin ${PAGES_TARGET_BRANCH})

if [ -n "$PAGES_BRANCH_EXISTS" ] ; then
echo "Pages Branch Found"
git checkout ${PAGES_TARGET_BRANCH}
else
echo "Creating Pages Branch"
git checkout --orphan ${PAGES_TARGET_BRANCH}
git rm -rf .
fi
#clear out develop documentation directory and copy docs contents to it.
echo "updating 'develop' directory"
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 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 .
#Check if there are doc changes, if none exit the script
if [[ -z `git diff HEAD --exit-code` ]] && [ -n "${PAGES_BRANCH_EXISTS}" ] ; then
echo "No changes to docs detected."
exit 0
fi
#Changes where detected, so we need to update the version log.
now=$(date +"%d %b %Y - %r")
if [ ! -f index.md ]; then
echo "---" >>index.md
echo "layout: default" >>index.md
echo "---" >>index.md
echo "<!-- Auto generated from .travis/push_docs_to_gh_pages.sh -->" >>index.md
echo "# Documentation versions" >>index.md
echo "" >>index.md
echo "" >>index.md #- 7th line - placeholder for latest release doc
echo "" >>index.md #- 8th line - placeholder for develop branch doc
echo "" >>index.md
echo "## Released Version Doc History" >>index.md
echo "" >>index.md
fi
#If build running on a TAG - it's a new release - need to add it to documentation
if [ -n "${TRAVIS_TAG}" ]; then
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 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}"
# Now that we're all set up, we can push.
git push --quiet origin HEAD:${PAGES_TARGET_BRANCH}
if [ -n "$PAGES_BRANCH_EXISTS" ] ; then
echo "Pages Branch Found"
git checkout ${PAGES_TARGET_BRANCH}
else
echo "Creating Pages Branch"
git checkout --orphan ${PAGES_TARGET_BRANCH}
git rm -rf .
fi
#clear out develop documentation directory and copy docs contents to it.
echo "updating 'develop' directory"
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 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 .
#Check if there are doc changes, if none exit the script
if [[ -z `git diff HEAD --exit-code` ]] && [ -n "${PAGES_BRANCH_EXISTS}" ] ; then
echo "No changes to docs detected."
exit 0
fi
#Changes where detected, so we need to update the version log.
now=$(date +"%d %b %Y - %r")
if [ ! -f index.md ]; then
echo "---" >>index.md
echo "layout: default" >>index.md
echo "---" >>index.md
echo "<!-- Auto generated from .travis/push_docs_to_gh_pages.sh -->" >>index.md
echo "# Documentation versions" >>index.md
echo "" >>index.md
echo "" >>index.md #- 7th line - placeholder for latest release doc
echo "" >>index.md #- 8th line - placeholder for develop branch doc
echo "" >>index.md
echo "## Released Version Doc History" >>index.md
echo "" >>index.md
fi
#If build running on a TAG - it's a new release - need to add it to documentation
if [ -n "${TRAVIS_TAG}" ]; then
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 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}"
# Now that we're all set up, we can push.
git push --quiet origin HEAD:${PAGES_TARGET_BRANCH}
fi

Loading