Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change ERL_FLAGS to limit compile concurrency on CircleCI #2028

Merged
merged 3 commits into from
Apr 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ jobs:
docker:
- image: elixir:<< parameters.elixir_version >>
- image: cimg/postgres:15.3
environment:
ERL_FLAGS: +S 4:4

steps:
- checkout
Expand All @@ -55,7 +57,11 @@ jobs:

- run:
name: "Save Elixir and Erlang version for PLT caching"
command: echo "$ELIXIR_VERSION $OTP_VERSION" > .elixir_otp_version
command: echo "$ELIXIR_VERSION $OTP_VERSION" | tee .elixir_otp_version

- run:
name: "Introspect schedulers"
command: elixir -v

- restore_cache:
keys:
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ defmodule Lightning.MixProject do
elixir: "~> 1.15",
elixirc_paths: elixirc_paths(Mix.env()),
elixirc_options: [
warnings_as_errors: false
warnings_as_errors: true
],
start_permanent: Mix.env() == :prod,
aliases: aliases(),
Expand Down
2 changes: 1 addition & 1 deletion test/test_helper.exs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Code.put_compiler_option(:warnings_as_errors, false)
Code.put_compiler_option(:warnings_as_errors, true)
# Report which tests are synchronous
# Rexbug.start("ExUnit.Server.add_sync_module/_")
Mox.defmock(Lightning.Tesla.Mock, for: Tesla.Adapter)
Expand Down