mirror of
https://github.com/gotson/komga.git
synced 2026-05-08 04:22:28 +02:00
- Add flyway-database-postgresql dependency - Create DatabaseUdfProvider abstraction with SQLite/PostgreSQL implementations - Update all DAO classes to use JooqUdfHelper for database-agnostic UDF/collation - Implement dynamic JOOQ dialect configuration based on database type - Add PostgreSQL migration directory with initial migration - Create Docker Compose setup for PostgreSQL 16 - Add integration test with Testcontainers PostgreSQL - Create helper scripts for local testing - Update application.yml for simplified testing - Add documentation and task tracking
25 lines
No EOL
582 B
Bash
Executable file
25 lines
No EOL
582 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Script to run Komga tests with PostgreSQL using Docker Compose
|
|
|
|
set -e
|
|
|
|
echo "Starting PostgreSQL test container..."
|
|
docker-compose -f docker-compose-test.yml up -d postgres-test
|
|
|
|
echo "Waiting for PostgreSQL to be ready..."
|
|
sleep 10
|
|
|
|
echo "Building Komga..."
|
|
./gradlew :komga:build -x test
|
|
|
|
echo "Running tests with PostgreSQL..."
|
|
./gradlew :komga:test --tests "*PostgreSQL*" --info
|
|
|
|
echo "Running integration tests..."
|
|
./gradlew :komga:integrationTest --info
|
|
|
|
echo "Stopping test containers..."
|
|
docker-compose -f docker-compose-test.yml down
|
|
|
|
echo "Test completed!" |