Skip to content
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

Add SpatiaLite dialect #139

Merged
merged 1 commit into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
21 changes: 20 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [push, pull_request]
jobs:
test:
name: ${{ matrix.DB }}
runs-on: ubuntu-latest
runs-on: ${{ matrix.OS }}
strategy:
fail-fast: false
matrix:
Expand All @@ -16,44 +16,63 @@ jobs:
until sqlcmd -S localhost,11433 -U sa -P P@ssw0rd -Q "SELECT 1"; do sleep 10; done
sqlcmd -S localhost,11433 -U sa -P P@ssw0rd -i Tests.NHibernate.Spatial.MsSql2012/initdb/nhsp_test.sql
TEST_PROJECT: Tests.NHibernate.Spatial.MsSql2012
OS: ubuntu-latest

- DB: MsSql2012 (SQL Server 2019)
DB_INIT: |
docker run -d -e ACCEPT_EULA=Y -e MSSQL_PID=Developer -e MSSQL_SA_PASSWORD=P@ssw0rd -p 11433:1433 mcr.microsoft.com/mssql/server:2019-latest
until sqlcmd -S localhost,11433 -U sa -P P@ssw0rd -Q "SELECT 1"; do sleep 10; done
sqlcmd -S localhost,11433 -U sa -P P@ssw0rd -i Tests.NHibernate.Spatial.MsSql2012/initdb/nhsp_test.sql
TEST_PROJECT: Tests.NHibernate.Spatial.MsSql2012
OS: ubuntu-latest

- DB: MsSql2012 (SQL Server 2022)
DB_INIT: |
docker run -d -e ACCEPT_EULA=Y -e MSSQL_PID=Developer -e MSSQL_SA_PASSWORD=P@ssw0rd -p 11433:1433 mcr.microsoft.com/mssql/server:2022-latest
until sqlcmd -S localhost,11433 -U sa -P P@ssw0rd -Q "SELECT 1"; do sleep 10; done
sqlcmd -S localhost,11433 -U sa -P P@ssw0rd -i Tests.NHibernate.Spatial.MsSql2012/initdb/nhsp_test.sql
TEST_PROJECT: Tests.NHibernate.Spatial.MsSql2012
OS: ubuntu-latest

- DB: MySQL57 (MySQL 5.7)
DB_INIT: docker run -d -e MYSQL_ROOT_PASSWORD=nhsp_test -p 13306:3306 -v ./Tests.NHibernate.Spatial.MySQL57/initdb:/docker-entrypoint-initdb.d mysql:5.7-debian
TEST_PROJECT: Tests.NHibernate.Spatial.MySQL57
OS: ubuntu-latest

- DB: MySQL80 (MySQL 8.0)
DB_INIT: docker run -d -e MYSQL_ROOT_PASSWORD=nhsp_test -p 13307:3306 -v ./Tests.NHibernate.Spatial.MySQL80/initdb:/docker-entrypoint-initdb.d mysql:8.0
TEST_PROJECT: Tests.NHibernate.Spatial.MySQL80
OS: ubuntu-latest

- DB: MySQL80 (MySQL 8.3)
DB_INIT: docker run -d -e MYSQL_ROOT_PASSWORD=nhsp_test -p 13307:3306 -v ./Tests.NHibernate.Spatial.MySQL80/initdb:/docker-entrypoint-initdb.d mysql:8.3
TEST_PROJECT: Tests.NHibernate.Spatial.MySQL80
OS: ubuntu-latest

- DB: PostGis20 (PostGIS 2.5 PostgreSQL 12)
DB_INIT: docker run -d -e POSTGRES_PASSWORD=nhsp_test -p 15432:5432 -v ./Tests.NHibernate.Spatial.PostGis20/initdb:/docker-entrypoint-initdb.d postgis/postgis:12-2.5
TEST_PROJECT: Tests.NHibernate.Spatial.PostGis20
OS: ubuntu-latest

- DB: PostGis30 (PostGIS 3.0 PostgreSQL 12)
DB_INIT: docker run -d -e POSTGRES_PASSWORD=nhsp_test -p 15433:5432 -v ./Tests.NHibernate.Spatial.PostGis30/initdb:/docker-entrypoint-initdb.d postgis/postgis:12-3.0
TEST_PROJECT: Tests.NHibernate.Spatial.PostGis30
OS: ubuntu-latest

- DB: PostGis30 (PostGIS 3.4 PostgreSQL 16)
DB_INIT: docker run -d -e POSTGRES_PASSWORD=nhsp_test -p 15433:5432 -v ./Tests.NHibernate.Spatial.PostGis30/initdb:/docker-entrypoint-initdb.d postgis/postgis:16-3.4
TEST_PROJECT: Tests.NHibernate.Spatial.PostGis30
OS: ubuntu-latest

- DB: SpatiaLite (SpatiaLite 4)
DB_INIT: sudo apt install libsqlite3-mod-spatialite=4.*
TEST_PROJECT: Tests.NHibernate.Spatial.SpatiaLite
OS: ubuntu-20.04

- DB: SpatiaLite (SpatiaLite 5)
DB_INIT: sudo apt install libsqlite3-mod-spatialite=5.*
TEST_PROJECT: Tests.NHibernate.Spatial.SpatiaLite
OS: ubuntu-latest

steps:
- name: Checkout repository
Expand Down
1 change: 1 addition & 0 deletions BuildPackages.bat
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ dotnet pack %options% NHibernate.Spatial
dotnet pack %options% NHibernate.Spatial.MsSql
dotnet pack %options% NHibernate.Spatial.MySQL
REM dotnet pack %options% NHibernate.Spatial.Oracle
dotnet pack %options% NHibernate.Spatial.SpatiaLite
dotnet pack %options% NHibernate.Spatial.PostGis
Loading