summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Roth <omarroth@protonmail.com>2019-09-24 20:51:12 -0400
committerGitHub <noreply@github.com>2019-09-24 20:51:12 -0400
commit347b1538843d2bcedf13e2cf3b06242b0c186e77 (patch)
tree4a245ea2c9ffce8e725899c1fe3de2eb1dc18042
parent1e7c1764812b67160095e0b51d42ee77a2e2338a (diff)
parentb25013c4a25a00c45ff9753220721ad75f78c26e (diff)
downloadinvidious-347b1538843d2bcedf13e2cf3b06242b0c186e77.tar.gz
invidious-347b1538843d2bcedf13e2cf3b06242b0c186e77.tar.bz2
invidious-347b1538843d2bcedf13e2cf3b06242b0c186e77.zip
Merge pull request #765 from leonklingele/docker-travis-warnings
docker,travis: fail build on any warning
-rw-r--r--.travis.yml2
-rw-r--r--docker/Dockerfile2
2 files changed, 2 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 7e61b9ae..314abc73 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -12,7 +12,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