Merge pull request #765 from leonklingele/docker-travis-warnings

docker,travis: fail build on any warning
このコミットが含まれているのは:
Omar Roth 2019-09-24 20:51:12 -04:00 committed by GitHub
コミット 347b153884
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 4AEE18F83AFDEB23
2個のファイルの変更2行の追加2行の削除

ファイルの表示

@ -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

ファイルの表示

@ -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