mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Merge pull request #765 from leonklingele/docker-travis-warnings
docker,travis: fail build on any warning
This commit is contained in:
commit
347b153884
2 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ jobs:
|
||||||
- shards update
|
- shards update
|
||||||
- shards install
|
- shards install
|
||||||
install:
|
install:
|
||||||
- crystal build --error-on-warnings src/invidious.cr
|
- crystal build --warnings all --error-on-warnings src/invidious.cr
|
||||||
script:
|
script:
|
||||||
- crystal tool format --check
|
- crystal tool format --check
|
||||||
- crystal spec
|
- crystal spec
|
||||||
|
|
|
@ -9,7 +9,7 @@ COPY ./src/ ./src/
|
||||||
# TODO: .git folder is required for building – this is destructive.
|
# TODO: .git folder is required for building – this is destructive.
|
||||||
# See definition of CURRENT_BRANCH, CURRENT_COMMIT and CURRENT_VERSION.
|
# See definition of CURRENT_BRANCH, CURRENT_COMMIT and CURRENT_VERSION.
|
||||||
COPY ./.git/ ./.git/
|
COPY ./.git/ ./.git/
|
||||||
RUN crystal build --static --release \
|
RUN crystal build --static --release --warnings all --error-on-warnings \
|
||||||
# TODO: Remove next line, see https://github.com/crystal-lang/crystal/issues/7946
|
# TODO: Remove next line, see https://github.com/crystal-lang/crystal/issues/7946
|
||||||
-Dmusl \
|
-Dmusl \
|
||||||
./src/invidious.cr
|
./src/invidious.cr
|
||||||
|
|
Loading…
Reference in a new issue