From: Alex Gleason Date: Sun, 23 May 2021 23:31:07 +0000 (-0500) Subject: Add cycles test to .gitlab-ci.yml X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=4bb578a1d76c8094db36021db0aed2dfcebd1dbc;p=akkoma Add cycles test to .gitlab-ci.yml Thank you @jb55@bitcoinhackers.org for the awk syntax --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b155c81bd..88504b3e3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -154,6 +154,14 @@ analysis: script: - mix credo --strict --only=warnings,todo,fixme,consistency,readability +cycles: + stage: test + image: elixir:1.11 + script: + - mix deps.get + - mix compile + - mix xref graph --format cycles --label compile | awk '{print $0} END{exit ($0 != "No cycles found")}' + docs-deploy: stage: deploy cache: *testing_cache_policy