Skip to content

Commit cd5f8b2

Browse files
authored
Fix drone setup for pgsql (#561)
1 parent f17098d commit cd5f8b2

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.drone.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ steps:
8181
- chmod -R 777 /tests/www/mysql/
8282
- chown -R www-data /tests/www/mysql/
8383
- cd /drone/src
84-
- npx cypress run --browser=firefox --e2e --config baseUrl=http://localhost/mysql,screenshotsFolder=/drone/src/tests/cypress/output/screenshots
84+
- npx cypress run --browser=firefox --e2e --env cmsPath=/tests/www/mysql,db_type=mysqli,db_host=mysql,db_name=test_joomla,db_user=joomla_ut,db_password=joomla_ut,db_prefix=mysql_ --config baseUrl=http://localhost/mysql,screenshotsFolder=/drone/src/tests/cypress/output/screenshot
8585

8686
- name: phpmin-system-postgres
8787
depends_on: [ prepare_tests ]
@@ -90,20 +90,20 @@ steps:
9090
- name: cypress-cache
9191
path: /root/.cache/Cypress
9292
commands:
93-
- mkdir /tests/www/mysql/
94-
- cp joomla.zip /tests/www/mysql/joomla.zip
95-
- cp dist/pkg-weblinks-current.zip /tests/www/mysql/pkg-weblinks-current.zip
96-
- cd /tests/www/mysql/
93+
- mkdir /tests/www/pgsql/
94+
- cp joomla.zip /tests/www/pgsql/joomla.zip
95+
- cp dist/pkg-weblinks-current.zip /tests/www/pgsql/pkg-weblinks-current.zip
96+
- cd /tests/www/pgsql/
9797
- unzip joomla.zip
9898
- apache2ctl -D FOREGROUND &
9999
- chmod +rwx /root
100100
- php installation/joomla.php install --verbose --site-name="Joomla CMS test" [email protected] --admin-username=ci-admin --admin-user="jane doe" --admin-password=joomla-17082005 --db-type=pgsql --db-host=postgres --db-name=test_joomla --db-pass=joomla_ut --db-user=root --db-encryption=0 --db-prefix=pgsql_
101101
- php cli/joomla.php config:set debug=true error_reporting=maximum
102-
- php cli/joomla.php extension:install --path=/tests/www/mysql/pkg-weblinks-current.zip
103-
- chmod -R 777 /tests/www/mysql/
104-
- chown -R www-data /tests/www/mysql/
102+
- php cli/joomla.php extension:install --path=/tests/www/pgsql/pkg-weblinks-current.zip
103+
- chmod -R 777 /tests/www/pgsql/
104+
- chown -R www-data /tests/www/pgsql/
105105
- cd /drone/src
106-
- npx cypress run --browser=firefox --e2e --config baseUrl=http://localhost/mysql,screenshotsFolder=/drone/src/tests/cypress/output/screenshots
106+
- npx cypress run --browser=firefox --e2e --env cmsPath=/tests/www/pgsql,db_type=pgsql,db_host=postgres,db_name=test_joomla,db_user=root,db_password=joomla_ut,db_prefix=pgsql_ --config baseUrl=http://localhost/pgsql,screenshotsFolder=/drone/src/tests/cypress/output/screenshot
107107

108108
- name: artifacts-system-tests
109109
image: joomlaprojects/docker-images:packager
@@ -175,6 +175,6 @@ services:
175175

176176
---
177177
kind: signature
178-
hmac: 5601b424756f623d78fe5831e2362e9335ff2c4ed1dfab9d53937c632ee1f635
178+
hmac: 35b018583f594e4c80a81cbd6e75e86c7c233e86d0d5fdf50603cb0f6727fece
179179

180180
...

0 commit comments

Comments
 (0)