-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into changemergesdialog
* upstream/master: Add throttle to AutosaveUIManager (#5680) Do not couple search position to sidebar width (#5716) fix springer fetcher tests Bump controlsfx from 11.0.0 to 11.0.1 (#5714) Add CHANGELOG.md entry for Oracle Enable oracle tests (#5683)
- Loading branch information
Showing
17 changed files
with
241 additions
and
108 deletions.
There are no files selected for viewing
This file contains 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 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,66 @@ | ||
name: Oracle Tests | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'src/test/java/org/jabref/model/database/**' | ||
- 'src/test/java/org/jabref/logic/shared/**' | ||
- '.github/workflows/tests-oracle.yml' | ||
- 'build.gradle' | ||
schedule: | ||
# run on each Wednesday | ||
- cron: '2 3 * * 3' | ||
|
||
jobs: | ||
oracletests: | ||
name: Oracle tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v1 | ||
with: | ||
depth: 1 | ||
submodules: false | ||
- name: Set up JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 13 | ||
- uses: actions/cache@v1 | ||
name: Restore gradle chache | ||
with: | ||
path: ~/.gradle/caches | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | ||
restore-keys: | | ||
${{ runner.OS }}-gradle-${{ env.cache-name }}- | ||
${{ runner.OS }}-gradle- | ||
${{ runner.OS }}- | ||
- uses: actions/cache@v1 | ||
name: Restore gradle wrapper | ||
with: | ||
path: ~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} | ||
- name: Start Oracle XE | ||
run: | | ||
mkdir ~/oracle-xe || true | ||
cd ~/oracle-xe | ||
wget -qN https://github.com/deusaquilus/docker-oracle-xe/archive/master.zip | ||
unzip master.zip | ||
cd docker-oracle-xe-master | ||
wget -qN http://ccrypt.sourceforge.net/download/1.11/ccrypt-1.11.linux-x86_64.tar.gz | ||
wget -qN -O files/oracle-database-xe-18c-1.0-1.x86_64.rpm.cpt https://files.jabref.org/thing.cpt | ||
pwd | ||
tar xzf ccrypt-1.11.linux-x86_64.tar.gz | ||
ccrypt-1.11.linux-x86_64/ccrypt -d -E CCRYPT files/oracle-database-xe-18c-1.0-1.x86_64.rpm.cpt | ||
docker build -t oracle-xe:18c . | ||
docker run -d -p 32118:1521 -p 35518:5500 --name=oracle-xe oracle-xe:18c | ||
# give oracle some time to start | ||
sleep 300 | ||
docker logs oracle-xe | ||
# path `/opt/oracle/product/18c/dbhomeXE` is taken from the `Dockerfile` used to build "oracle-xe" | ||
docker exec -i oracle-xe bash -c "source /home/oracle/.bashrc; /bin/bash -c '/opt/oracle/product/18c/dbhomeXE/bin/sqlplus sys/Oracle18@localhost/XE as sysdba'" < $GITHUB_WORKSPACE/buildres/setup-test-oracle.sql | ||
env: | ||
CCRYPT: ${{ secrets.CCRYPT }} | ||
- name: Run database test | ||
run: ./gradlew databaseTest --rerun-tasks | ||
env: | ||
DBMS: "oracle" |
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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 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,6 @@ | ||
create pluggable database jabref admin user jabref identified by jabref | ||
file_name_convert=('/opt/oracle/oradata/XE/pdbseed','/opt/oracle/oradata/XE/JABREF'); | ||
alter pluggable database jabref open read write; | ||
alter pluggable database all save state; | ||
ALTER SESSION SET CONTAINER = jabref; | ||
grant all privileges to jabref container=current; |
This file contains 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 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 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
Oops, something went wrong.