Skip to content

CI: Fix Chamilo setup for automated testing #6385

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jun 24, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ jobs:
sudo cp -f tests/travis/gh-apache /etc/apache2/sites-available/000-default.conf
sudo chmod 777 -R $HOME
cat /etc/apache2/sites-available/000-default.conf
sudo service apache2 restart
sudo systemctl restart apache2

- name: Setup PHP, with composer and extensions
Expand Down Expand Up @@ -171,11 +170,6 @@ jobs:
php -v
php -m

# - name: Check chamilo
# run: |
# sudo chmod 777 -R ${{ github.workspace }}
# curl http://localhost/main/install/index.php

- name: Install chash
run: |
git clone https://github.com/chamilo/chash
Expand All @@ -189,12 +183,12 @@ jobs:
- name: Install chamilo
run: |
php7.4 ${{ github.workspace }}/chash/chash.php chash:chamilo_install 1.11.x ${{ github.workspace }} --no-interaction --sitename="Chamilo" --site_url="http://localhost/" --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" --dbpassword="root" --permissions_for_new_directories="0777" --permissions_for_new_files="0666" --linux-user="www-data" --linux-group="www-data" --username="admin" --password="admin" --email="[email protected]" --phone="555-5555"
sudo chmod -R 777 app/cache app/logs app/courses app/upload web
php7.4 ${{ github.workspace }}/chash/chash.php chash:chamilo_status
ls -la
sudo chmod -R 777 app/cache app/logs app/courses app/upload web
bash tests/travis/post_installation.sh
sudo cp -f tests/travis/gh-apache /etc/apache2/sites-available/000-default.conf
sudo systemctl restart apache2
curl http://localhost/index.php
ls -la web/build

- name: Behat tests
run: |
Expand Down
Loading