-
Notifications
You must be signed in to change notification settings - Fork 1
Travis CI; Junit 5; Oracle 18c; Oracle - package instead of standalone SP; #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
dmvolodin
wants to merge
3
commits into
seregamorph:master
Choose a base branch
from
dmvolodin:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,4 +8,3 @@ sql/oracle/init/.cache | |
| pom.xml.releaseBackup | ||
| pom.xml.versionsBackup | ||
| release.properties | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| sudo: required | ||
| language: java | ||
| jdk: openjdk8 | ||
| services: | ||
| - docker | ||
| - postgresql | ||
| - mysql | ||
| before_install: | ||
| - ./build/setup_postgres.sh | ||
| - ./build/setup_mysql.sh | ||
| - ./build/setup_oracle.sh | ||
| cache: | ||
| directories: | ||
| - $HOME/.m2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| mysql < sql/mysql/create-test-user.sql | ||
| mysql -u test --password=test test < sql/mysql/schema-mysql-1.sql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| CONTAINER_NAME="oracle18" | ||
|
|
||
| # pull from private repo | ||
| echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin | ||
| docker pull morejdbc/morejdbc-oracle-18:latest | ||
|
|
||
| # run | ||
| echo "Running $CONTAINER_NAME container" | ||
| docker run -d --name "$CONTAINER_NAME" -p 1521:1521 --expose=1521 morejdbc/morejdbc-oracle-18:latest | ||
|
|
||
| # wait database to be ready | ||
| DB_IS_READY="0" | ||
| while test "$DB_IS_READY" = "0"; | ||
| do | ||
| sleep 5; | ||
|
|
||
| if docker logs "$CONTAINER_NAME" | grep -q 'DATABASE IS READY TO USE'; | ||
| then | ||
| DB_IS_READY="1" | ||
| fi | ||
|
|
||
| if docker logs "$CONTAINER_NAME" | grep -q 'DATABASE SETUP WAS NOT SUCCESSFUL'; | ||
| then | ||
| exit 1 | ||
| fi | ||
| echo "It's Oracle. Please wait..." | ||
| done; | ||
| ### | ||
|
|
||
| docker exec -i "$CONTAINER_NAME" sqlplus / as sysdba << EOF | ||
| $(cat sql/oracle/create-test-user.sql) | ||
| exit; | ||
| EOF | ||
|
|
||
| docker exec -i "$CONTAINER_NAME" sqlplus test/test << EOF | ||
| $(cat sql/oracle/schema-oracle-1.sql) | ||
| exit; | ||
| EOF |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| psql -U postgres -f sql/postgres/create-test-user.sql | ||
| psql -U test -f sql/postgres/schema-postgres-1.sql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| create database test; | ||
| create user 'test'@'%' identified by 'test'; | ||
| grant all privileges on *.* to 'test'@'%'; | ||
| flush privileges; |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,19 +1,14 @@ | ||
| -- liquibase formatted sql | ||
|
|
||
| -- changeset seregamorph:FEA-1-create-schema-1 splitStatements:false | ||
| CREATE PROCEDURE test_math( | ||
| IN val1 int, | ||
| IN val2 int, | ||
| OUT out_sum int, | ||
| OUT out_mlt int | ||
| ) | ||
| BEGIN | ||
| delimiter // | ||
| create procedure test_math(IN val1 int, IN val2 int, OUT out_sum int, OUT out_mlt int) | ||
| begin | ||
| set out_sum = val1 + val2; | ||
| set out_mlt = val1 * val2; | ||
| END; | ||
| end; | ||
| // | ||
|
|
||
| -- changeset seregamorph:FEA-1-create-schema-2 splitStatements:false | ||
| CREATE FUNCTION get_concat(s1 varchar(50), s2 varchar(50)) | ||
| RETURNS VARCHAR(100) DETERMINISTIC | ||
| RETURN concat(s1, s2); | ||
|
|
||
| create function get_concat(s1 varchar(50), s2 varchar(50)) returns varchar(100) | ||
| return concat(s1, s2); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| create user test identified by test default tablespace users quota 100m on users; | ||
| grant connect, resource to test; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.