Skip to content

Invidious is an alternative front-end to YouTube

docker,travis: fail build on any warning

Leon Klingeleb25013c4a25a
diff --git a/.travis.yml b/.travis.yml
index f5918bb1..6e39f75c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -9,7 +9,7 @@ jobs:
- shards update
- shards install
install:
- - crystal build --error-on-warnings src/invidious.cr
+ - crystal build --warnings all --error-on-warnings src/invidious.cr
script:
- crystal tool format --check
- crystal spec
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 224c0bf2..5cf5997d 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -9,7 +9,7 @@ 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 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
-Dmusl \
./src/invidious.cr