Skip to content

Commit

Permalink
devops: CI env vars fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
kidunot89 committed May 20, 2024
1 parent 5a89699 commit a1d2a2a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ RUN service apache2 restart

# Set project environmental variables
ENV WP_ROOT_FOLDER="/var/www/html"
ENV WP_CORE_DIR=${WP_ROOT_FOLDER}
ENV WORDPRESS_DB_HOST=${DB_HOST}
ENV WORDPRESS_DB_PORT=${DB_PORT}
ENV WORDPRESS_DB_USER=${DB_USER}
Expand Down
1 change: 1 addition & 0 deletions bin/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export WORDPRESS_DOMAIN=${WORDPRESS_DOMAIN-$( hostname -i )}
export WORDPRESS_URL="http://$WORDPRESS_DOMAIN"
echo "WORDPRESS_DOMAIN=$WORDPRESS_DOMAIN" > "$PROJECT_DIR/.env.docker"
echo "WORDPRESS_URL=$WORDPRESS_URL" >> "$PROJECT_DIR/.env.docker"
echo "WP_CORE_DIR=$WP_ROOT_FOLDER" >> "$PROJECT_DIR/.env.docker"

# Config WordPress
if [ -f "${WP_ROOT_FOLDER}/wp-config.php" ]; then
Expand Down
9 changes: 3 additions & 6 deletions tests/acceptance.suite.dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ modules:
config:
\Tests\WPGraphQL\Codeception\Module\WPGraphQL:
endpoint: '%WORDPRESS_URL%/graphql'
\lucatume\WPBrowser\Module\WPCLI:
path: '%WP_ROOT_FOLDER%'
throw: true
\lucatume\WPBrowser\Module\WPDb:
dsn: 'mysql:host=%DB_HOST%;dbname=%DB_NAME%'
user: '%DB_USER%'
Expand All @@ -38,7 +35,7 @@ modules:
tablePrefix: '%WP_TABLE_PREFIX%'
\lucatume\WPBrowser\Module\WPBrowser:
url: '%WORDPRESS_URL%'
wpRootFolder: '%WP_CORE_DIR%'
wpRootFolder: '%WP_ROOT_FOLDER%'
adminUsername: '%ADMIN_USERNAME%'
adminPassword: '%ADMIN_PASSWORD%'
adminPath: '/wp-admin'
Expand All @@ -47,14 +44,14 @@ modules:
url: '%WORDPRESS_URL%'
cookies: false
\lucatume\WPBrowser\Module\WPFilesystem:
wpRootFolder: '%WP_CORE_DIR%'
wpRootFolder: '%WP_ROOT_FOLDER%'
plugins: '/wp-content/plugins'
mu-plugins: '/wp-content/mu-plugins'
themes: '/wp-content/themes'
uploads: '/wp-content/uploads'
\lucatume\WPBrowser\Module\WPLoader:
loadOnly: true
wpRootFolder: '%WP_CORE_DIR%'
wpRootFolder: '%WP_ROOT_FOLDER%'
dbUrl: 'mysql://%DB_USER%:%DB_PASSWORD%@%DB_HOST%:%DB_PORT%/%DB_NAME%'
domain: '%WORDPRESS_DOMAIN%'
# plugins:
Expand Down
9 changes: 3 additions & 6 deletions tests/functional.suite.dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ modules:
config:
\Tests\WPGraphQL\Codeception\Module\WPGraphQL:
endpoint: '%WORDPRESS_URL%/graphql'
\lucatume\WPBrowser\Module\WPCLI:
path: '%WP_ROOT_FOLDER%'
throw: true
\lucatume\WPBrowser\Module\WPDb:
dsn: 'mysql:host=%DB_HOST%;dbname=%DB_NAME%'
user: '%DB_USER%'
Expand All @@ -36,7 +33,7 @@ modules:
tablePrefix: '%WP_TABLE_PREFIX%'
\lucatume\WPBrowser\Module\WPBrowser:
url: '%WORDPRESS_URL%'
wpRootFolder: '%WP_CORE_DIR%'
wpRootFolder: '%WP_ROOT_FOLDER%'
adminUsername: '%ADMIN_USERNAME%'
adminPassword: '%ADMIN_PASSWORD%'
adminPath: '/wp-admin'
Expand All @@ -45,14 +42,14 @@ modules:
url: '%WORDPRESS_URL%'
cookies: false
\lucatume\WPBrowser\Module\WPFilesystem:
wpRootFolder: '%WP_CORE_DIR%'
wpRootFolder: '%WP_ROOT_FOLDER%'
plugins: '/wp-content/plugins'
mu-plugins: '/wp-content/mu-plugins'
themes: '/wp-content/themes'
uploads: '/wp-content/uploads'
\lucatume\WPBrowser\Module\WPLoader:
loadOnly: true
wpRootFolder: '%WP_CORE_DIR%'
wpRootFolder: '%WP_ROOT_FOLDER%'
dbUrl: 'mysql://%DB_USER%:%DB_PASSWORD%@%DB_HOST%:%DB_PORT%/%DB_NAME%'
domain: '%WORDPRESS_DOMAIN%'
configFile: 'tests/_data/e2e-config.php'
Expand Down

0 comments on commit a1d2a2a

Please sign in to comment.