Skip to content

Commit 6e8c384

Browse files
committed
Fix preferred_envs warning in mix.exs
1 parent d16fc50 commit 6e8c384

2 files changed

Lines changed: 15 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ jobs:
77
# https://github.com/erlef/setup-beam/issues/161#issuecomment-1336129218
88
runs-on: ubuntu-20.04
99
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
10+
env:
11+
MIX_ENV: test
1012
strategy:
1113
matrix:
1214
include:

mix.exs

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,6 @@ defmodule Aja.MixProject do
1111
deps: deps(),
1212
consolidate_protocols: Mix.env() != :test,
1313
aliases: aliases(),
14-
preferred_cli_env: [
15-
inch: :docs,
16-
docs: :docs,
17-
"hex.publish": :docs,
18-
dialyzer: :dialyzer,
19-
cover: :test,
20-
"test.unit": :test,
21-
"test.prop": :test
22-
],
2314

2415
# Hex
2516
description:
@@ -77,6 +68,19 @@ defmodule Aja.MixProject do
7768
]
7869
end
7970

71+
def cli do
72+
[
73+
preferred_envs: [
74+
docs: :docs,
75+
"hex.publish": :docs,
76+
dialyzer: :dialyzer,
77+
cover: :test,
78+
"test.unit": :test,
79+
"test.prop": :test
80+
]
81+
]
82+
end
83+
8084
defp package do
8185
[
8286
maintainers: ["sabiwara"],

0 commit comments

Comments
 (0)