Skip to content

Commit 558a70d

Browse files
committed
[test] OTP 23+ is required for Phoenix 1.7+
1 parent f51cbe9 commit 558a70d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

bin/test

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
TEST_ROOT="$(pwd)/test"
44
ASSETS_ROOT="$(pwd)/assets"
55

6-
MIX_ENV=test mix compile --warnings-as-errors --force || {
6+
mix compile --warnings-as-errors --force || {
77
echo 'Please fix all compiler warnings.'
88
exit 1
99
}
10-
MIX_ENV=test mix credo --strict --ignore design,consistency || {
10+
mix credo --strict --ignore design,consistency || {
1111
echo 'Elixir code failed Credo linting. See warnings above.'
1212
exit 1
1313
}
14-
MIX_ENV=test mix docs || {
14+
mix docs || {
1515
echo 'Elixir HTML docs were not generated!'
1616
exit 1
1717
}
@@ -60,9 +60,9 @@ echo "[DEBUG] Current Elixir Version: $iexCurrentVersion"
6060
otpCurrentVersion="$(erl -eval 'erlang:display(erlang:system_info(otp_release)), halt().' -noshell | sed 's/\"//g')"
6161
echo "[DEBUG] Current OTP Version: $otpCurrentVersion"
6262

63-
requiredMinVersion="24"
63+
requiredMinVersion="23"
6464
if [ "$(printf '%s\n' "$requiredMinVersion" "$otpCurrentVersion" | sort -Vr | head -n1)" = "$requiredMinVersion" ]; then
65-
echo '[Skipping] OTP 24+ is required for Phoenix 1.7+'
65+
echo '[Skipping] OTP 23+ is required for Phoenix 1.7+'
6666
else
6767
cd "$TEST_ROOT/support/apps/phx1_7" && {
6868
bin/test || {

0 commit comments

Comments
 (0)