Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM php:7.4-apache

# Set the working directory to /var/www/html
WORKDIR /var/www/html

# Copy the contents of the current directory into the container at /var/www/html
COPY . /var/www/html

# Install any needed extensions
RUN docker-php-ext-install mysqli pdo_mysql

# Make port 80 available to the world outside this container
EXPOSE 80

# Run apache when the container launches
CMD ["apache2-foreground"]
4 changes: 4 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,9 @@
"branch-alias": {
"dev-main": "2.x-dev"
}
},
"scripts": {
"lint": "find . -name '*.php' -exec php -l {} \\;",
"test": "./vendor/bin/phpunit --coverage-html=coverage"
}
}
4 changes: 4 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
<include>
<directory suffix=".php">./src</directory>
</include>
<report>
<html outputDirectory="build/phpunit/html-coverage"/>
<xml outputDirectory="build/phpunit/xml-coverage"/>
</report>
</coverage>
<testsuites>
<testsuite name="Google PHP Client Unit Test Suite">
Expand Down