From 96d4cd50d42d8746a3a76a96d62b6425be2d1345 Mon Sep 17 00:00:00 2001 From: Christopher Davis Date: Mon, 4 Mar 2019 13:18:36 -0500 Subject: [PATCH] CI: create blank versions of configured files before lint Required now that we have dynamically generated sources. --- .gitlab-ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index da6ec9e..82f6b02 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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