Commit 3913d64d by Alexander Makarov

Attempt to fix travis

parent c0a83142
...@@ -27,12 +27,17 @@ addons: ...@@ -27,12 +27,17 @@ addons:
install: install:
- composer self-update && composer --version - composer self-update && composer --version
- export PATH="$HOME/.composer/vendor/bin:$PATH"
# core framework: # core framework:
- composer install --prefer-dist - composer install --prefer-dist
- tests/unit/data/travis/mongodb-setup.sh - tests/unit/data/travis/mongodb-setup.sh
- tests/unit/data/travis/apc-setup.sh - tests/unit/data/travis/apc-setup.sh
- tests/unit/data/travis/memcache-setup.sh - tests/unit/data/travis/memcache-setup.sh
- tests/unit/data/travis/cubrid-setup.sh - tests/unit/data/travis/cubrid-setup.sh
# codeception
- composer global require "codeception/codeception=2.0.*"
- composer global require "codeception/specify=*"
- composer global require "codeception/verify=*"
# basic and advanced application: # basic and advanced application:
- tests/unit/data/travis/setup-apps.sh - tests/unit/data/travis/setup-apps.sh
......
...@@ -7,22 +7,20 @@ else ...@@ -7,22 +7,20 @@ else
# basic application: # basic application:
composer install --dev --prefer-dist -d apps/basic composer install --dev --prefer-dist -d apps/basic
cd apps/basic && composer require --dev codeception/codeception:2.0.* codeception/specify:* codeception/verify:*
sed -i "s/'cookieValidationKey' => ''/'cookieValidationKey' => 'testkey'/" config/web.php sed -i "s/'cookieValidationKey' => ''/'cookieValidationKey' => 'testkey'/" config/web.php
cd tests && php vendor/bin/codecept build && cd ../../.. cd tests && codecept build && cd ../../..
# advanced application: # advanced application:
composer install --dev --prefer-dist -d apps/advanced composer install --dev --prefer-dist -d apps/advanced
cd apps/advanced && composer require --dev codeception/codeception:2.0.* codeception/specify:* codeception/verify:*
./init --env=Development ./init --env=Development
sed -i s/root/travis/ common/config/main-local.php sed -i s/root/travis/ common/config/main-local.php
sed -i "s/'cookieValidationKey' => ''/'cookieValidationKey' => 'testkey'/" frontend/config/main.php sed -i "s/'cookieValidationKey' => ''/'cookieValidationKey' => 'testkey'/" frontend/config/main.php
sed -i "s/'cookieValidationKey' => ''/'cookieValidationKey' => 'testkey'/" backend/config/main.php sed -i "s/'cookieValidationKey' => ''/'cookieValidationKey' => 'testkey'/" backend/config/main.php
cd tests/codeception/backend && php ../../../vendor/bin/codecept build cd tests/codeception/backend && codecept build
cd ../../../common && php ../../../vendor/bin/codecept build cd ../../../common && codecept build
cd ../../../frontend && php ../../../vendor/bin/codecept build && cd ../../../../../.. cd ../../../frontend && codecept build && cd ../../../../../..
# boot server # boot server
cd apps && php -S localhost:8080 > /dev/null 2>&1 & cd apps && php -S localhost:8080 > /dev/null 2>&1 &
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment