This commit is contained in:
Shish 2020-01-27 20:06:19 +00:00
parent 9ea70b0055
commit d6c7857c6b

View file

@ -14,9 +14,9 @@ RUN composer install
COPY . /app/
RUN mkdir -p data/config && \
echo "<?php define(\"DATABASE_DSN\", \"sqlite:data/shimmie.sqlite\");" > data/config/auto_install.conf.php && \
echo === Installing === && php index.php && \
echo === Smoke Test === && php index.php get-page /post/list && \
echo === Unit Tests === && ./vendor/bin/phpunit --configuration tests/phpunit.xml && \
echo === Coverage === && ./vendor/bin/phpunit --configuration tests/phpunit.xml --coverage-text && \
echo === Cleaning === && rm -rf data
echo '=== Installing ===' && php index.php && \
echo '=== Smoke Test ===' && php index.php get-page /post/list && \
echo '=== Unit Tests ===' && ./vendor/bin/phpunit --configuration tests/phpunit.xml && \
echo '=== Coverage ===' && ./vendor/bin/phpunit --configuration tests/phpunit.xml --coverage-text && \
echo '=== Cleaning ===' && rm -rf data
CMD "/app/tests/docker-init.sh"