Use chash directly

pull/3064/head
Julio 5 years ago
parent 7f981f0818
commit 9bab399a14
  1. 12
      .travis.yml

@ -61,17 +61,17 @@ before_install:
- cd chash
- git log -1 # check chash version
- composer install
- php -d phar.readonly=0 createPhar.php
- chmod +x chash.phar
- sudo mv chash.phar /usr/local/bin/chash
#- php -d phar.readonly=0 createPhar.php
#- chmod +x chash.phar
#- sudo mv chash.phar /usr/local/bin/chash
# Download chamilo
- php -d date.timezone="Europe/Paris" chash.php chash:chamilo_install $CHAMILO_VERSION $TRAVIS_BUILD_DIR --download-package --no-interaction --only-download-package
- php -d date.timezone="Europe/Paris" $TRAVIS_BUILD_DIR/chash/bin/console chash:chamilo_install $CHAMILO_VERSION $TRAVIS_BUILD_DIR --download-package --no-interaction --only-download-package
- cd $TRAVIS_BUILD_DIR
- pwd
# Install vendors
- travis_wait 45 composer install
# Install chamilo
- php -d date.timezone="Europe/Paris" $TRAVIS_BUILD_DIR/chash/chash.php chash:chamilo_install $CHAMILO_VERSION $TRAVIS_BUILD_DIR --no-interaction --sitename="Chamilo" --site_url="http://$VHOST_URL/" --institution="Chamilo" --institution_url="https://chamilo.org" --encrypt_method="sha1" --firstname="John" --lastname="Doe" --language="english" --driver="pdo_mysql" --host="localhost" --port="3306" --dbname="chamilo" --dbuser="root" --permissions_for_new_directories="0777" --permissions_for_new_files="0666" --linux-user="www-data" --linux-group="www-data" --username="admin" --password="admin" --email="admin@example.com" --phone="555-5555"
- php -d date.timezone="Europe/Paris" $TRAVIS_BUILD_DIR/chash/bin/console chash:chamilo_install $CHAMILO_VERSION $TRAVIS_BUILD_DIR --no-interaction --sitename="Chamilo" --site_url="http://$VHOST_URL/" --institution="Chamilo" --institution_url="https://chamilo.org" --encrypt_method="sha1" --firstname="John" --lastname="Doe" --language="english" --driver="pdo_mysql" --host="localhost" --port="3306" --dbname="chamilo" --dbuser="root" --permissions_for_new_directories="0777" --permissions_for_new_files="0666" --linux-user="www-data" --linux-group="www-data" --username="admin" --password="admin" --email="admin@example.com" --phone="555-5555"
# Install bundle js/css
- php bin/console assets:install
# Permissions
@ -82,7 +82,7 @@ before_install:
- yarn install
- ./node_modules/.bin/encore dev
# Check chamilo status
- php -d date.timezone="Europe/Paris" $TRAVIS_BUILD_DIR/chash/chash.php chash:chamilo_status
- php -d date.timezone="Europe/Paris" $TRAVIS_BUILD_DIR/chash/bin/console chash:chamilo_status
# Permissions
- sudo chown -R www-data:www-data $TRAVIS_BUILD_DIR
- sudo chown -R 775 $TRAVIS_BUILD_DIR

Loading…
Cancel
Save