-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.bash
42 lines (37 loc) · 1.87 KB
/
install.bash
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/sh
# [[ ]] requires bash
set -ev # https://docs.travis-ci.com/user/customizing-the-build/
origin=$(pwd)
composer create-project --no-install symfony/website-skeleton $CREATE_PROJECT_DIRECTORY
if [[ -v $CREATE_PROJECT_DIRECTORY ]]; then
cd $CREATE_PROJECT_DIRECTORY
else
cd website-skeleton
fi
(cd $origin/etap/install && tar --exclude-vcs --create --file - .) | tar --extract --verbose --file -
composer config bin-dir bin
# cp $origin/.env.dist . # Needs apparently to be done before install.
composer install
# composer require symfony/yaml # in symfony/website-skeleton
# composer require symfony/console # in symfony/website-skeleton
# composer require symfony/twig-bundle # in symfony/website-skeleton
# composer require sensio/framework-extra-bundle # in symfony/website-skeleton
# composer require symfony/orm-pack # in symfony/website-skeleton
# composer require symfony/swiftmailer-bundle # in symfony/website-skeleton
# composer require symfony/security-csrf
# cp $origin/config/packages/*.yaml config/packages --verbose
# cp $origin/config/routes/*.yaml config/routes --verbose
(cd $origin/etap/fos_user && tar --exclude-vcs --create --file - .) | tar --extract --verbose --file -
composer require friendsofsymfony/user-bundle
# cp $origin/src/Entity/*.php src/Entity --verbose # May be done earlier.
bin/console doctrine:database:create
bin/console doctrine:migrations:diff --quiet
bin/console doctrine:migrations:migrate --no-interaction --quiet
# bin/console doctrine:schema:update --force
# composer require doctrine/doctrine-fixtures-bundle --dev
# cp $origin/src/DataFixtures/AppFixtures.php src/DataFixtures
# bin/console doctrine:fixtures:load --append
bin/console fos:user:create superadmin superadmin@example.com superadmin --super-admin
bin/console fos:user:create user user@example.com user
# cp --recursive $origin/tests . --verbose
bin/console assets:install --symlink