|
|
@ -64,26 +64,26 @@ before_install: |
|
|
|
- bash tests/travis/setup-apache.sh |
|
|
|
- bash tests/travis/setup-apache.sh |
|
|
|
|
|
|
|
|
|
|
|
# Starting Apache |
|
|
|
# Starting Apache |
|
|
|
- service apache2 restart |
|
|
|
- sudo service apache2 restart |
|
|
|
- cat /etc/hosts |
|
|
|
- sudo cat /etc/hosts |
|
|
|
- curl http://localhost/php.php |
|
|
|
- curl http://localhost/php.php |
|
|
|
|
|
|
|
|
|
|
|
install: |
|
|
|
install: |
|
|
|
- phpenv config-rm xdebug.ini || return 0 |
|
|
|
- phpenv config-rm xdebug.ini || return 0 |
|
|
|
- composer install --prefer-source --no-interaction |
|
|
|
- composer update --prefer-source --no-interaction |
|
|
|
# Install bundle js/css |
|
|
|
# Install bundle js/css |
|
|
|
- php bin/console assets:install |
|
|
|
- php bin/console assets:install |
|
|
|
# Permissions |
|
|
|
# Permissions |
|
|
|
- chmod -R 777 var public |
|
|
|
- sudo chmod -R 777 var public |
|
|
|
# Dump js routes |
|
|
|
# Dump js routes |
|
|
|
- php bin/console fos:js-routing:dump --format=json --target=public/js/fos_js_routes.json |
|
|
|
- php bin/console fos:js-routing:dump --format=json --target=public/js/fos_js_routes.json |
|
|
|
# Install third party js/css libraries |
|
|
|
- # Install third party js/css libraries |
|
|
|
- yarn install |
|
|
|
- yarn install |
|
|
|
- ./node_modules/.bin/encore dev |
|
|
|
- ./node_modules/.bin/encore dev |
|
|
|
# Permissions |
|
|
|
# Permissions |
|
|
|
- chown -R www-data:www-data $TRAVIS_BUILD_DIR |
|
|
|
- sudo chown -R www-data:www-data $TRAVIS_BUILD_DIR |
|
|
|
- chown -R 775 $TRAVIS_BUILD_DIR |
|
|
|
- sudo chown -R 775 $TRAVIS_BUILD_DIR |
|
|
|
- chmod +x /home/travis/build |
|
|
|
- sudo chmod +x /home/travis/build |
|
|
|
- ls -la public/build |
|
|
|
- ls -la public/build |
|
|
|
|
|
|
|
|
|
|
|
script: |
|
|
|
script: |
|
|
@ -124,7 +124,7 @@ script: |
|
|
|
- ../../vendor/behat/behat/bin/behat features/toolWork.feature -v |
|
|
|
- ../../vendor/behat/behat/bin/behat features/toolWork.feature -v |
|
|
|
|
|
|
|
|
|
|
|
after_failure: |
|
|
|
after_failure: |
|
|
|
- cat /var/log/apache2/error.log |
|
|
|
- sudo cat /var/log/apache2/error.log |
|
|
|
|
|
|
|
|
|
|
|
# configure notifications (email, IRC, campfire etc) |
|
|
|
# configure notifications (email, IRC, campfire etc) |
|
|
|
notifications: |
|
|
|
notifications: |
|
|
|