Skip to content
This repository was archived by the owner on Jan 2, 2019. It is now read-only.

[NOTICKET] Add integration test database set up#15

Open
pcelta wants to merge 1 commit into
masterfrom
NOTICKET/integration-test-setup
Open

[NOTICKET] Add integration test database set up#15
pcelta wants to merge 1 commit into
masterfrom
NOTICKET/integration-test-setup

Conversation

@pcelta

@pcelta pcelta commented Nov 3, 2017

Copy link
Copy Markdown

This PR introduces a setup for integration test.

For getting this configuration up, please run the follow command

./install_integration_test.sh

the output will look like

╰─$ ./install_integration_test.sh
Creating Integration DB...
Prepare database schema (driver: doctrine/orm)
Dropped database for connection named `akeneo_pim_itest`
Created database for connection named `akeneo_pim_itest`
ATTENTION: This operation should not be executed in a production environment.

Creating database schema...
Database schema created successfully!
Updating database schema...
Database schema updated successfully! "1" queries were executed
Create session table
Load jobs for fixtures. (data set: TheIconicExtrasBundle:minimal)
Fixtures fixtures_locale_csv has been successfully executed.
Fixtures fixtures_currency_csv has been successfully executed.
Fixtures fixtures_user_group_csv has been successfully executed.
Fixtures fixtures_category_csv has been successfully executed.
Fixtures fixtures_attribute_group_csv has been successfully executed.
Fixtures fixtures_group_type_csv has been successfully executed.
Fixtures fixtures_channel_csv has been successfully executed.
Fixtures fixtures_association_type_csv has been successfully executed.
Fixtures fixtures_attribute_csv has been successfully executed.
Fixtures fixtures_attribute_options_csv has been successfully executed.
Fixtures fixtures_family_csv has been successfully executed.
Fixtures fixtures_variant_group_csv has been successfully executed.
Fixtures fixtures_group_csv has been successfully executed.
Fixtures fixtures_user_role_csv has been successfully executed.
Fixtures fixtures_user_csv has been successfully executed.
Fixtures fixtures_product_csv has been successfully executed.
Fixtures fixtures_job_yml has been successfully executed.

Delete jobs for fixtures.
Versioning is already up to date.
Generating missing completenesses...
Missing completenesses generated.
Done!
Running the migrations...

                    PIM Migrations


Migrating up to 20171020213959 from 0

  ++ migrating 20170421020229

if [ -z "${PIM_INTEGRATION_DB_NAME}" ] || [ -z "${PIM_INTEGRATION_DB_USER}" ]; then
echo ""
echo "Please set your integration environment values in '.env' file "
echo "and try again. Thank you Sir/Lady."

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should remove Sir/Lady 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants