Skip to content

Commit 0712adb

Browse files
authored
CI: Fix issues setting up test environment for behat
1 parent 50a181d commit 0712adb

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

.github/workflows/php.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ jobs:
4444
sudo cp -f tests/travis/gh-apache /etc/apache2/sites-available/000-default.conf
4545
sudo chmod 777 -R $HOME
4646
cat /etc/apache2/sites-available/000-default.conf
47-
sudo service apache2 restart
4847
sudo systemctl restart apache2
4948
5049
- name: Setup PHP, with composer and extensions
@@ -171,11 +170,6 @@ jobs:
171170
php -v
172171
php -m
173172
174-
# - name: Check chamilo
175-
# run: |
176-
# sudo chmod 777 -R ${{ github.workspace }}
177-
# curl http://localhost/main/install/index.php
178-
179173
- name: Install chash
180174
run: |
181175
git clone https://github.com/chamilo/chash
@@ -189,12 +183,12 @@ jobs:
189183
- name: Install chamilo
190184
run: |
191185
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"
192-
sudo chmod -R 777 app/cache app/logs app/courses app/upload web
193186
php7.4 ${{ github.workspace }}/chash/chash.php chash:chamilo_status
194-
ls -la
187+
sudo chmod -R 777 app/cache app/logs app/courses app/upload web
195188
bash tests/travis/post_installation.sh
189+
sudo cp -f tests/travis/gh-apache /etc/apache2/sites-available/000-default.conf
190+
sudo systemctl restart apache2
196191
curl http://localhost/index.php
197-
ls -la web/build
198192
199193
- name: Behat tests
200194
run: |

0 commit comments

Comments
 (0)