CI: create blank versions of configured files before lint

Required now that we have dynamically generated
sources.
This commit is contained in:
Christopher Davis 2019-03-04 13:18:36 -05:00 committed by Jordan Petridis
parent 7a77f31aa3
commit 96d4cd50d4
No known key found for this signature in database
GPG Key ID: E8523968931763BE

View File

@ -86,6 +86,10 @@ rustfmt:
stage: "lint"
script:
- rustup component add rustfmt
# Create blank versions of our configured files
# so rustfmt does not yell about non-existent files or completely empty files
- echo -e "" >> podcasts-gtk/src/config.rs
- echo -e "" >> podcasts-gtk/src/static_resource.rs
- rustc -Vv && cargo -Vv
- cargo fmt --version
- cargo fmt --all -- --color=always --check