summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2022-07-11 09:28:47 +0200
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>2022-07-11 10:12:18 +0200
commit702a41ce231999c8343b5c43100211bfc9dab4b5 (patch)
tree22fe6330137c225aca77d213c66fd402c9e7d88a
parent08c8814ef06455a0abc74fda9bab30729b702453 (diff)
CI: Run lint and cycles in alpine
-rw-r--r--.gitlab-ci.yml10
1 files changed, 6 insertions, 4 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7a61161ee..718524aee 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -147,7 +147,7 @@ unit-testing-rum:
- mix test --preload-modules
lint:
- image: elixir:1.12
+ image: elixir:1.12-alpine
stage: test
only:
changes:
@@ -156,6 +156,8 @@ lint:
- "mix.lock"
cache: *testing_cache_policy
before_script:
+ - apk update
+ - apk add cmake file-dev git
- mix local.hex --force
- mix local.rebar --force
- mix deps.get
@@ -175,7 +177,7 @@ analysis:
cycles:
stage: test
- image: elixir:1.11
+ image: elixir:1.11-alpine
only:
changes:
- "**/*.ex"
@@ -183,11 +185,11 @@ cycles:
- "mix.lock"
cache: {}
before_script:
+ - apk update
+ - apk add cmake file-dev git
- mix local.hex --force
- mix local.rebar --force
- mix deps.get
- - apt-get update
- - apt-get install cmake libmagic-dev -y
script:
- mix compile
- mix xref graph --format cycles --label compile | awk '{print $0} END{exit ($0 != "No cycles found")}'