Skip to content

Commit

Permalink
ci: debug prepare-fixtures script
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaian committed Nov 15, 2024
1 parent 3ff00bb commit a43c069
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion schema/bin/prepare-test-db
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ pushd /opt/irontec/ivozprovider/schema
# Prepare dataset
bin/console core:prepare:database -e test
# Load fixtures
DISABLE_FK=1 bin/console doctrine:fixtures:load -e test --no-interaction -v
export DISBALE_FK=1
bin/console doctrine:fixtures:load -e test --no-interaction -v

# Create initial dataset file
mv var/cache/test/db.sqlite var/cache/test/db.sqlite.back
Expand Down
3 changes: 2 additions & 1 deletion tests/docker/bin/prepare-fixtures
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
mkdir -m 777 -p /opt/irontec/ivozprovider/storage/

# Prepare tests databases
cat /opt/irontec/ivozprovider/schema/bin/prepare-test-db
/opt/irontec/ivozprovider/schema/bin/prepare-test-db

mkdir -m 777 -p /opt/irontec/ivozprovider/web/rest/platform/var/cache/test
Expand All @@ -16,4 +17,4 @@ mkdir -m 777 -p /opt/irontec/ivozprovider/web/rest/client/var/cache/test
cp /opt/irontec/ivozprovider/schema/var/cache/test/db.sqlite.back /opt/irontec/ivozprovider/web/rest/client/var/cache/test/db.sqlite.back

mkdir -m 777 -p /opt/irontec/ivozprovider/web/rest/user/var/cache/test
cp /opt/irontec/ivozprovider/schema/var/cache/test/db.sqlite.back /opt/irontec/ivozprovider/web/rest/user/var/cache/test/db.sqlite.back
cp /opt/irontec/ivozprovider/schema/var/cache/test/db.sqlite.back /opt/irontec/ivozprovider/web/rest/user/var/cache/test/db.sqlite.back

0 comments on commit a43c069

Please sign in to comment.