From 1704c3907452c6eb829cb3e01eadf7a0560fd9cd Mon Sep 17 00:00:00 2001 From: Joao P Dubas Date: Sun, 23 Jul 2023 22:31:26 +0000 Subject: [PATCH] fix(ci): use raw commands for test and static code analysis The `slim` variant image doesn't have `make` installed. --- .drone.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 58b1694..8d9800e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -45,13 +45,17 @@ steps: POSTGRES_PASS: postgres commands: - mix do local.rebar --force, local.hex --force, deps.get, deps.compile - - make test + - mix compile + - mix test --cover --trace --slowest 10 - name: lint image: 'elixir:1.15.4-slim' commands: - mix do local.rebar --force, local.hex --force, deps.get, deps.compile - - make static_code_analysis + - mix compile + - mix format --check-formatted + - mix credo suggest --strict --format=flycheck + - mix dialyzer --no-check --quiet --ignore-exit-status --format short - name: rebuild cache image: 'meltwater/drone-cache:v1.4.0'