setup-apps.sh 932 Bytes
Newer Older
Carsten Brandt committed
1 2
#!/bin/sh

3
if (php --version | grep -i HipHop > /dev/null); then
Carsten Brandt committed
4 5 6 7 8 9
  echo "skipping application setup on HHVM"
else

    # basic application:

    composer install --dev --prefer-dist -d apps/basic
10
    cd apps/basic && sed -i "s/'cookieValidationKey' => ''/'cookieValidationKey' => 'testkey'/" config/web.php
11
    cd tests && codecept build && cd ../../..
Carsten Brandt committed
12 13 14 15 16


    # advanced application:

    composer install --dev --prefer-dist -d apps/advanced
17
    cd apps/advanced && ./init --env=Development
Carsten Brandt committed
18
    sed -i s/root/travis/ common/config/main-local.php
Qiang Xue committed
19
    sed -i "s/'cookieValidationKey' => ''/'cookieValidationKey' => 'testkey'/" frontend/config/main.php
Qiang Xue committed
20
    sed -i "s/'cookieValidationKey' => ''/'cookieValidationKey' => 'testkey'/" backend/config/main.php
21
    cd tests/codeception/backend && codecept build
Alexander Makarov committed
22 23 24
    cd ../common && codecept build
    cd ../console && codecept build
    cd ../frontend && codecept build
25
    cd ../../../
Carsten Brandt committed
26
fi