Skip to content

Commit d821f8e

Browse files
committed
Make prod builds but with docs
Switch to publishing prod firmware images like is recommended when distributing firmware with Nerves. This wasn't done since the Nerves default mix.exs strips beam files and we wanted the docs. It's possible to strip everything but the docs, so this commit adds that option.
1 parent d36ceaa commit d821f8e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.circleci/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ defaults: &defaults
22
working_directory: /nerves/build
33
docker:
44
- image: nervesproject/nerves_system_br:1.13.2
5+
environment:
6+
MIX_ENV: prod
57

68
elixir_version: &elixir_version
79
ELIXIR_VERSION: 1.11.2-otp-23

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ defmodule CircuitsQuickstart.MixProject do
6464
cookie: "#{@app}_cookie",
6565
include_erts: &Nerves.Release.erts/0,
6666
steps: [&Nerves.Release.init/1, :assemble],
67-
strip_beams: Mix.env() == :prod
67+
strip_beams: [keep: ["Docs"]]
6868
]
6969
end
7070
end

0 commit comments

Comments
 (0)