Skip to content

Commit

Permalink
Run highest tests on all DB platforms for now (#5990)
Browse files Browse the repository at this point in the history
* Run highest tests on all DB platforms for now

* Add back sqlite

* Put back exclude

* Less exclude

* Try only sqlite on highest

* Add executor

* Test highest on all DBMS
  • Loading branch information
weitzman committed May 10, 2024
1 parent d612c00 commit fdb6ea0
Showing 1 changed file with 36 additions and 21 deletions.
57 changes: 36 additions & 21 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,23 @@ commands:
fi
executors:
sqlite-lowest:
docker:
- image: wodby/php:$WODBY_TAG
environment:
- "UNISH_DB_URL=sqlite://localhost/:memory:?module=sqlite"
sqlite-highest:
docker:
- image: wodby/php:latest
environment:
- "UNISH_DB_URL=sqlite://localhost/:memory:?module=sqlite"
mysql-lowest:
docker:
- image: wodby/php:$WODBY_TAG
environment:
- MYSQL_HOST=127.0.0.1
- UNISH_DB_URL=mysql://root:@127.0.0.1/unish_dev?module=mysql
- image: cimg/mysql:5.7.38
sqlite-lowest:
docker:
- image: wodby/php:$WODBY_TAG
environment:
- "UNISH_DB_URL=sqlite://localhost/:memory:?module=sqlite"
mysql-highest:
docker:
- image: wodby/php:latest
Expand All @@ -67,6 +72,17 @@ executors:
POSTGRES_PASSWORD: unish
POSTGRES_DB: unish_dev
POSTGRES_USER: unish
postgres-highest:
docker:
- image: wodby/php:latest
environment:
- UNISH_DB_URL=pgsql://unish:unish@127.0.0.1/unish_dev?module=pgsql
- image: wodby/postgres:latest
environment:
POSTGRES_DB_EXTENSIONS: pg_trgm
POSTGRES_PASSWORD: unish
POSTGRES_DB: unish_dev
POSTGRES_USER: unish

version: 2.1
jobs:
Expand Down Expand Up @@ -161,21 +177,20 @@ workflows:
<<: *poststeps
matrix:
parameters:
#sqlite removed pending https://github.com/wodby/php/issues/194
dbms: [ mysql, postgres ]
dbms: [ mysql, postgres, sqlite ]
suite: [integration, functional]
release: [ lowest, highest ]
exclude:
# Only run highest test on mysql. Excluding each suite is unfortunate but needed.
- release: highest
dbms: sqlite
suite: integration
- release: highest
dbms: sqlite
suite: functional
- release: highest
dbms: postgres
suite: integration
- release: highest
dbms: postgres
suite: functional
# exclude:
# # Only run highest tests on sqlite. Excluding each suite is unfortunate but needed.
# - release: highest
# dbms: mysql
# suite: integration
# - release: highest
# dbms: mysql
# suite: functional
# - release: highest
# dbms: postgres
# suite: integration
# - release: highest
# dbms: postgres
# suite: functional

0 comments on commit fdb6ea0

Please sign in to comment.