CI: Run lint and cycles in alpine
This commit is contained in:
parent
08c8814ef0
commit
702a41ce23
|
@ -147,7 +147,7 @@ unit-testing-rum:
|
||||||
- mix test --preload-modules
|
- mix test --preload-modules
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
image: elixir:1.12
|
image: elixir:1.12-alpine
|
||||||
stage: test
|
stage: test
|
||||||
only:
|
only:
|
||||||
changes:
|
changes:
|
||||||
|
@ -156,6 +156,8 @@ lint:
|
||||||
- "mix.lock"
|
- "mix.lock"
|
||||||
cache: *testing_cache_policy
|
cache: *testing_cache_policy
|
||||||
before_script:
|
before_script:
|
||||||
|
- apk update
|
||||||
|
- apk add cmake file-dev git
|
||||||
- mix local.hex --force
|
- mix local.hex --force
|
||||||
- mix local.rebar --force
|
- mix local.rebar --force
|
||||||
- mix deps.get
|
- mix deps.get
|
||||||
|
@ -175,7 +177,7 @@ analysis:
|
||||||
|
|
||||||
cycles:
|
cycles:
|
||||||
stage: test
|
stage: test
|
||||||
image: elixir:1.11
|
image: elixir:1.11-alpine
|
||||||
only:
|
only:
|
||||||
changes:
|
changes:
|
||||||
- "**/*.ex"
|
- "**/*.ex"
|
||||||
|
@ -183,11 +185,11 @@ cycles:
|
||||||
- "mix.lock"
|
- "mix.lock"
|
||||||
cache: {}
|
cache: {}
|
||||||
before_script:
|
before_script:
|
||||||
|
- apk update
|
||||||
|
- apk add cmake file-dev git
|
||||||
- mix local.hex --force
|
- mix local.hex --force
|
||||||
- mix local.rebar --force
|
- mix local.rebar --force
|
||||||
- mix deps.get
|
- mix deps.get
|
||||||
- apt-get update
|
|
||||||
- apt-get install cmake libmagic-dev -y
|
|
||||||
script:
|
script:
|
||||||
- mix compile
|
- mix compile
|
||||||
- mix xref graph --format cycles --label compile | awk '{print $0} END{exit ($0 != "No cycles found")}'
|
- mix xref graph --format cycles --label compile | awk '{print $0} END{exit ($0 != "No cycles found")}'
|
||||||
|
|
Loading…
Reference in New Issue