summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Gleason <alex@alexgleason.me>2021-05-23 18:31:07 -0500
committerAlex Gleason <alex@alexgleason.me>2021-05-23 18:31:07 -0500
commit4d4daee2327f288a748944a49f4238e3f2ef7ea6 (patch)
tree090b0e30d246474a03716caf560eaf22cbef252e
parentc031d25fc6a9df03880fafe952f991374053f028 (diff)
Add cycles test to .gitlab-ci.yml
-rw-r--r--.gitlab-ci.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c7e8291d8..434c14f45 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -123,6 +123,15 @@ analysis:
- mix deps.get
- mix credo --strict --only=warnings,todo,fixme,consistency,readability
+cycles:
+ stage: test
+ cache: *testing_cache_policy
+ script:
+ - mix deps.get
+ - mix xref graph --format cycles --label compile > /tmp/cycles.log
+ - cat /tmp/cycles.log
+ - tail -n1 /tmp/cycles.log | grep -q "No cycles found"
+
docs-deploy:
stage: deploy
cache: *testing_cache_policy