Add cycles test to .gitlab-ci.yml

Thank you @jb55@bitcoinhackers.org for the awk syntax
This commit is contained in:
Alex Gleason 2021-05-23 18:31:07 -05:00
parent 3972d7117e
commit 4bb578a1d7
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

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