#!/bin/sh

# Test commands
bin/schema dump-configuration
bin/schema extract-cardinalities

# Build models
rm -Rf build/
mkdir -p build/full/ build/ecommerce/ build/address-book/
bin/schema generate-types build/address-book/ tests/config/address-book.yml
bin/schema generate-types build/ecommerce/ tests/config/ecommerce.yml

# Check code CS
vendor/bin/php-cs-fixer --dry-run --diff -vvv fix src/

# Check CS of generated models CS
vendor/bin/php-cs-fixer --dry-run --diff -vvv fix build/

#!/bin/sh

# Test commands
bin/schema dump-configuration
bin/schema extract-cardinalities

# Build models
rm -Rf build/
mkdir -p build/ecommerce/ build/address-book/
bin/schema generate-types build/address-book/ tests/config/address-book.yml
bin/schema generate-types build/ecommerce/ tests/config/ecommerce.yml

# Check code CS
vendor/bin/php-cs-fixer --dry-run --diff -vvv fix src/

# Check CS of generated models CS
vendor/bin/php-cs-fixer --dry-run --diff -vvv fix build/

Revert "Read external rdfa data"
Revert "Read external rdfa data"
