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
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ testunit:
-v $(CURDIR):/app \
-e DB_HOST=server_db \
-w /app \
kubikvest/api \
sh -c '/app/vendor/bin/phpunit'
kubikvest/api-dev \
sh -c 'vendor/bin/phpunit'

stop:
@-docker stop $(CONTAINERS)
Expand Down
6 changes: 6 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
<env name="KEY" value="qwerty"/>
<env name="URL" value="http://server"/>
</php>
<logging>
<log type="coverage-html" target="./build/log/coverage" title="api-kubikvest"
charset="UTF-8" yui="true" highlight="true"
lowUpperBound="35" highLowerBound="70"/>
<log type="coverage-clover" target="./build/log/clover.xml"/>
</logging>
<testsuites>
<testsuite name="Kubikvest Test Suite">
<directory>./tests</directory>
Expand Down
8 changes: 6 additions & 2 deletions tests/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
FROM kubikvest/api

RUN echo "@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
RUN echo "@community http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
apk add --update \
php7-xdebug@testing && \
php7@community \
php7-iconv@community \
php7-xdebug@community && \
ln -s /usr/bin/php7 /usr/bin/php && \
echo 'zend_extension=xdebug.so' >> /etc/php7/conf.d/xdebug.ini && \
rm -rf /var/cache/apk/*

ENTRYPOINT ["/bin/sh", "/app/entrypoint/kubikvest-dev.sh"]