slightly more verbose docker install

This commit is contained in:
Shish 2019-11-03 18:55:37 +00:00
parent 0fa371c7b0
commit 4f0ee38508

View File

@ -14,7 +14,8 @@ 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 && \
php index.php && \
./vendor/bin/phpunit --configuration tests/phpunit.xml --coverage-text && \
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 --coverage-text && \
echo === Cleaning === && rm -rf data
CMD "/app/tests/docker-init.sh"