Skip to content

Commit 8fb6dc6

Browse files
committed
Try pushing an apache config file
1 parent 92d91e5 commit 8fb6dc6

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.circleci/apache_ci.conf

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Listen 8080
2+
3+
<VirtualHost *:8080>
4+
LoadModule php7_module /opt/circleci/php/7.0.17/usr/lib/apache2/modules/libphp7.so
5+
6+
DocumentRoot /home/circleci/wp-php-console/wordpress
7+
ServerName wp-php-console.test
8+
DirectoryIndex index.html index.json index.php
9+
LogLevel notice
10+
11+
<FilesMatch \.php$>
12+
SetHandler application/x-httpd-php
13+
</FilesMatch>
14+
15+
<Directory /home/circleci/wp-php-console/wordpress>
16+
AllowOverride All
17+
Allow from All
18+
</Directory>
19+
20+
</VirtualHost>

.circleci/config.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ jobs:
3939
# Move plugin into WordPress and activate
4040
- run: mv plugin wordpress/wp-content/plugins/wp-php-console
4141
- run: ./wp-cli.phar plugin activate wp-php-console --path=wordpress || true
42-
# Restart Apache and run tests
42+
# Configure and restart Apache, then run tests
43+
- run: sudo cp .circleci/apache_ci.conf /etc/apache2/sites-available
44+
- run: sudo a2ensite apache_ci.conf
4345
- run: sudo service apache2 restart
4446
- run: cd wordpress/wp-content/plugins/wp-php-console
4547
- run: vendor/bin/codecept run acceptance

0 commit comments

Comments
 (0)