mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2025-12-28 10:31:28 +00:00
test: test
This commit is contained in:
@@ -7,6 +7,7 @@ ARG release
|
||||
WORKDIR /invidious
|
||||
COPY ./shard.yml ./shard.yml
|
||||
COPY ./shard.lock ./shard.lock
|
||||
|
||||
RUN shards install --production
|
||||
|
||||
COPY ./src/ ./src/
|
||||
@@ -19,9 +20,7 @@ COPY ./scripts/ ./scripts/
|
||||
COPY ./assets/ ./assets/
|
||||
COPY ./videojs-dependencies.yml ./videojs-dependencies.yml
|
||||
|
||||
RUN crystal spec --warnings all \
|
||||
--link-flags "-lxml2 -llzma"
|
||||
RUN --mount=type=cache,target=/root/.cache/crystal if [[ "${release}" == 1 ]] ; then \
|
||||
RUN if [[ "${release}" == 1 ]] ; then \
|
||||
crystal build ./src/invidious.cr \
|
||||
--release --mcpu=x86-64-v2 \
|
||||
--static --warnings all \
|
||||
|
||||
Reference in New Issue
Block a user