-
Notifications
You must be signed in to change notification settings - Fork 53
/
script_behat.sh
executable file
·25 lines (19 loc) · 839 Bytes
/
script_behat.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env sh
rm -rRf ./Tests/Functional/app/cache/*
rm -rRf ./Tests/Functional/app/logs/*
rm -f ./Tests/Functional/app/config/parameters.yml
echo 'parameters:
database_driver: pdo_mysql
database_host: 127.0.0.1
database_port: null
database_name: ccdn_test
database_user: ccdnroot
database_password: root
locale: en
' > ./Tests/Functional/app/config/parameters.yml
composer install --dev --prefer-dist
php ./Tests/Functional/app/console --env=test doctrine:database:drop --force
php ./Tests/Functional/app/console --env=test doctrine:database:create
php ./Tests/Functional/app/console --env=test doctrine:schema:create
php ./Tests/Functional/app/console --env=test doctrine:schema:update --force
./vendor/behat/behat/bin/behat "@CCDNForumForumBundle" --config ./behat.yml