Skip to content

Commit

Permalink
Appveyor config to run ldap tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tatankat committed Aug 26, 2022
1 parent 88bd149 commit ae52193
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,10 @@ environment:
matrix:
- php_ver_target: 8.0


init:
- SET PATH=C:\Tools\php;%PATH%
- SET COMPOSER_NO_INTERACTION=1
- SET ANSICON=121x90 (121x90)
services:
- mysql
- iis

## Install PHP and composer, and run the appropriate composer command
install:
Expand Down Expand Up @@ -45,7 +41,17 @@ install:
- cd C:\projects\joomla-cms
- refreshenv
- composer install --no-progress --profile --ignore-platform-req=ext-sodium

hosts:
openldap: 127.0.0.1

services:
- mysql
- iis

before_test:
# Run openldap docker image
- docker run --rm --name openldap --publish 1389:1389 --publish 1636:1636 -v tests/Codeception/_data/certs:/certificates --env LDAP_ADMIN_USERNAME=admin --env LDAP_ADMIN_PASSWORD=adminpassword --env LDAP_USERS=customuser --env LDAP_PASSWORDS=custompassword --env LDAP_ENABLE_TLS=yes --env LDAP_TLS_CERT_FILE=/certificates/openldap.crt --env LDAP_TLS_KEY_FILE=/certificates/openldap.key --env LDAP_TLS_CA_FILE=/certificates/CA.crt --env BITNAMI_DEBUG=true --env LDAP_CONFIG_ADMIN_ENABLED=yes --env LDAP_CONFIG_ADMIN_USERNAME=admin --env LDAP_CONFIG_ADMIN_PASSWORD=configpassword bitnami/openldap:latest
# Database setup for MySQL via PowerShell tools
- >
"C:\Program Files\MySQL\MySQL Server 5.7\bin\mysql" -u root -p"Password12!" -e "CREATE DATABASE IF NOT EXISTS test_joomla;"
Expand Down

0 comments on commit ae52193

Please sign in to comment.