Skip to content

Instantly share code, notes, and snippets.

View anyt's full-sized avatar

Andrii Yatsenko anyt

View GitHub Profile
@anyt
anyt / behat.yml.dist
Last active December 10, 2021 11:56
Run OroCommerce behat tests in headless mode
imports:
- behat.yml.dist
default: &default
extensions: &default_extensions
Behat\MinkExtension:
base_url: 'http://oro.ee.local'
sessions:
second_session:
oroSelenium2:

Run on changed files:

php bin/phpcs {} -p --encoding=utf-8 --extensions=php --standard=vendor/oro/platform/build/Oro/phpcs.xml

php bin/php-cs-fixer fix {} --verbose --dry-run --config=vendor/oro/platform/build/.php-cs-fixer.php

php bin/phpmd {} text vendor/oro/platform/build/phpmd.xml --suffixes php 

where {} is the changed file

Docker

Pgsql

Backup

docker exec -t $(docker-compose ps -q pgsql) pg_dumpall -c -U oro_db_user > dump.psql

Restore