Add specs check to dockerfiles

This commit is contained in:
syeopite 2021-08-09 12:47:23 -07:00
parent 6cb88a82a4
commit 38a197990b
No known key found for this signature in database
GPG Key ID: 6FA616E5A5294A82
2 changed files with 8 additions and 0 deletions

View File

@ -43,6 +43,10 @@ COPY ./src/ ./src/
# TODO: .git folder is required for building this is destructive.
# See definition of CURRENT_BRANCH, CURRENT_COMMIT and CURRENT_VERSION.
COPY ./.git/ ./.git/
RUN crystal spec --warnings all \
--link-flags "-lxml2 -llzma"
RUN crystal build ./src/invidious.cr \
--static --warnings all \
--link-flags "-lxml2 -llzma"

View File

@ -43,6 +43,10 @@ COPY ./src/ ./src/
# TODO: .git folder is required for building this is destructive.
# See definition of CURRENT_BRANCH, CURRENT_COMMIT and CURRENT_VERSION.
COPY ./.git/ ./.git/
RUN crystal spec --warnings all \
--link-flags "-lxml2 -llzma"
RUN crystal build ./src/invidious.cr \
--static --warnings all \
--link-flags "-lxml2 -llzma"