Enable `warnings_as_errors` for each app
parent
49102ca5fd
commit
2d66f09485
|
@ -59,9 +59,9 @@ build_firmware_steps: &build_firmware_steps
|
||||||
echo "$MIX_TARGET" > MIX_TARGET
|
echo "$MIX_TARGET" > MIX_TARGET
|
||||||
echo "$MIX_ENV" > MIX_ENV
|
echo "$MIX_ENV" > MIX_ENV
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
key: v12-fbos-{{ checksum "MIX_TARGET" }}-{{ checksum "MIX_ENV" }}-dependency-cache-{{ checksum "farmbot_os/mix.lock" }}
|
key: v13-fbos-{{ checksum "MIX_TARGET" }}-{{ checksum "MIX_ENV" }}-dependency-cache-{{ checksum "farmbot_os/mix.lock" }}
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
key: v12-fbos-host-test-dependency-cache-{{ checksum "farmbot_os/mix.lock" }}
|
key: v13-fbos-host-test-dependency-cache-{{ checksum "farmbot_os/mix.lock" }}
|
||||||
- <<: *install_elixir
|
- <<: *install_elixir
|
||||||
- <<: *install_hex_archives
|
- <<: *install_hex_archives
|
||||||
- run:
|
- run:
|
||||||
|
@ -79,7 +79,7 @@ build_firmware_steps: &build_firmware_steps
|
||||||
command: |
|
command: |
|
||||||
cp /nerves/build/farmbot_os/_build/${MIX_TARGET}/${MIX_TARGET}_${MIX_ENV}/nerves/images/farmbot.fw /nerves/deploy/system/artifacts/farmbot-${MIX_TARGET}-$(cat VERSION).fw
|
cp /nerves/build/farmbot_os/_build/${MIX_TARGET}/${MIX_TARGET}_${MIX_ENV}/nerves/images/farmbot.fw /nerves/deploy/system/artifacts/farmbot-${MIX_TARGET}-$(cat VERSION).fw
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: v12-fbos-{{ checksum "MIX_TARGET" }}-{{ checksum "MIX_ENV" }}-dependency-cache-{{ checksum "farmbot_os/mix.lock" }}
|
key: v13-fbos-{{ checksum "MIX_TARGET" }}-{{ checksum "MIX_ENV" }}-dependency-cache-{{ checksum "farmbot_os/mix.lock" }}
|
||||||
paths:
|
paths:
|
||||||
- /nerves/build/farmbot_os/_build/
|
- /nerves/build/farmbot_os/_build/
|
||||||
- /nerves/build/farmbot_os/deps/
|
- /nerves/build/farmbot_os/deps/
|
||||||
|
@ -99,7 +99,7 @@ deploy_nerves_hub_firmware_steps: &deploy_nerves_hub_firmware_steps
|
||||||
echo "$MIX_TARGET" > MIX_TARGET
|
echo "$MIX_TARGET" > MIX_TARGET
|
||||||
echo "$MIX_ENV" > MIX_ENV
|
echo "$MIX_ENV" > MIX_ENV
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
key: v12-fbos-{{ checksum "MIX_TARGET" }}-{{ checksum "MIX_ENV" }}-dependency-cache-{{ checksum "farmbot_os/mix.lock" }}
|
key: v13-fbos-{{ checksum "MIX_TARGET" }}-{{ checksum "MIX_ENV" }}-dependency-cache-{{ checksum "farmbot_os/mix.lock" }}
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
key: nerves/deploy/system-{{ checksum "MIX_TARGET" }}-{{ .Branch }}-{{ .Revision }}-{{ .Environment.CIRCLE_TAG }}
|
key: nerves/deploy/system-{{ checksum "MIX_TARGET" }}-{{ .Branch }}-{{ .Revision }}-{{ .Environment.CIRCLE_TAG }}
|
||||||
- <<: *install_elixir
|
- <<: *install_elixir
|
||||||
|
@ -135,7 +135,7 @@ jobs:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- v12-fbcs-test-dependency-cache-{{ checksum "farmbot_celery_script/mix.lock" }}
|
- v13-fbcs-test-dependency-cache-{{ checksum "farmbot_celery_script/mix.lock" }}
|
||||||
- <<: *install_elixir
|
- <<: *install_elixir
|
||||||
- <<: *install_hex_archives
|
- <<: *install_hex_archives
|
||||||
- run:
|
- run:
|
||||||
|
@ -147,12 +147,12 @@ jobs:
|
||||||
mix format --check-formatted
|
mix format --check-formatted
|
||||||
mix coveralls.json
|
mix coveralls.json
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: v12-fbcs-test-dependency-cache-{{ checksum "farmbot_celery_script/mix.lock" }}
|
key: v13-fbcs-test-dependency-cache-{{ checksum "farmbot_celery_script/mix.lock" }}
|
||||||
paths:
|
paths:
|
||||||
- farmbot_celery_script/_build/test
|
- farmbot_celery_script/_build/test
|
||||||
- farmbot_celery_script/deps
|
- farmbot_celery_script/deps
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: v12-fbcs-coverage-cache-{{ .Branch }}-{{ .Revision }}
|
key: v13-fbcs-coverage-cache-{{ .Branch }}-{{ .Revision }}
|
||||||
paths:
|
paths:
|
||||||
- farmbot_celery_script/cover
|
- farmbot_celery_script/cover
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
|
@ -169,7 +169,7 @@ jobs:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- v12-fbfw-test-dependency-cache-{{ checksum "farmbot_firmware/mix.lock" }}
|
- v13-fbfw-test-dependency-cache-{{ checksum "farmbot_firmware/mix.lock" }}
|
||||||
- <<: *install_elixir
|
- <<: *install_elixir
|
||||||
- <<: *install_hex_archives
|
- <<: *install_hex_archives
|
||||||
- run:
|
- run:
|
||||||
|
@ -181,12 +181,12 @@ jobs:
|
||||||
mix format --check-formatted
|
mix format --check-formatted
|
||||||
mix coveralls.json
|
mix coveralls.json
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: v12-fbfw-test-dependency-cache-{{ checksum "farmbot_firmware/mix.lock" }}
|
key: v13-fbfw-test-dependency-cache-{{ checksum "farmbot_firmware/mix.lock" }}
|
||||||
paths:
|
paths:
|
||||||
- farmbot_firmware/_build/test
|
- farmbot_firmware/_build/test
|
||||||
- farmbot_firmware/deps
|
- farmbot_firmware/deps
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: v12-fbfw-coverage-cache-{{ .Branch }}-{{ .Revision }}
|
key: v13-fbfw-coverage-cache-{{ .Branch }}-{{ .Revision }}
|
||||||
paths:
|
paths:
|
||||||
- farmbot_firmware/cover
|
- farmbot_firmware/cover
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
|
@ -205,10 +205,10 @@ jobs:
|
||||||
- run: git submodule update --init --recursive
|
- run: git submodule update --init --recursive
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- v12-fbcore-test-dependency-cache-{{ checksum "farmbot_core/mix.lock" }}
|
- v13-fbcore-test-dependency-cache-{{ checksum "farmbot_core/mix.lock" }}
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- v12-fbcore-test-arduino-dependency-cache-{{ checksum ".circleci/setup-arduino.sh" }}
|
- v13-fbcore-test-arduino-dependency-cache-{{ checksum ".circleci/setup-arduino.sh" }}
|
||||||
- <<: *install_elixir
|
- <<: *install_elixir
|
||||||
- <<: *install_hex_archives
|
- <<: *install_hex_archives
|
||||||
- <<: *install_arduino
|
- <<: *install_arduino
|
||||||
|
@ -225,19 +225,19 @@ jobs:
|
||||||
mix format --check-formatted
|
mix format --check-formatted
|
||||||
mix coveralls.json --trace
|
mix coveralls.json --trace
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: v12-fbcore-test-dependency-cache-{{ checksum "farmbot_core/mix.lock" }}
|
key: v13-fbcore-test-dependency-cache-{{ checksum "farmbot_core/mix.lock" }}
|
||||||
paths:
|
paths:
|
||||||
- farmbot_core/_build/test
|
- farmbot_core/_build/test
|
||||||
- farmbot_core/deps
|
- farmbot_core/deps
|
||||||
- farmbot_core/arduino
|
- farmbot_core/arduino
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: v12-fbcore-coverage-cache-{{ .Branch }}-{{ .Revision }}
|
key: v13-fbcore-coverage-cache-{{ .Branch }}-{{ .Revision }}
|
||||||
paths:
|
paths:
|
||||||
- farmbot_core/cover
|
- farmbot_core/cover
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: farmbot_core/cover
|
path: farmbot_core/cover
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: v12-fbcore-test-arduino-dependency-cache-{{ checksum ".circleci/setup-arduino.sh" }}
|
key: v13-fbcore-test-arduino-dependency-cache-{{ checksum ".circleci/setup-arduino.sh" }}
|
||||||
paths:
|
paths:
|
||||||
- ~/arduino-1.8.5
|
- ~/arduino-1.8.5
|
||||||
- farmbot_core/_build/core
|
- farmbot_core/_build/core
|
||||||
|
@ -259,7 +259,7 @@ jobs:
|
||||||
- run: git submodule update --init --recursive
|
- run: git submodule update --init --recursive
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- v12-fbext-test-dependency-cache-{{ checksum "farmbot_ext/mix.lock" }}
|
- v13-fbext-test-dependency-cache-{{ checksum "farmbot_ext/mix.lock" }}
|
||||||
- <<: *install_elixir
|
- <<: *install_elixir
|
||||||
- <<: *install_hex_archives
|
- <<: *install_hex_archives
|
||||||
- run:
|
- run:
|
||||||
|
@ -273,12 +273,12 @@ jobs:
|
||||||
mix ecto.migrate
|
mix ecto.migrate
|
||||||
mix coveralls.json
|
mix coveralls.json
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: v12-fbext-test-dependency-cache-{{ checksum "farmbot_ext/mix.lock" }}
|
key: v13-fbext-test-dependency-cache-{{ checksum "farmbot_ext/mix.lock" }}
|
||||||
paths:
|
paths:
|
||||||
- farmbot_ext/_build/test
|
- farmbot_ext/_build/test
|
||||||
- farmbot_ext/deps
|
- farmbot_ext/deps
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: v12-fbext-coverage-cache-{{ .Branch }}-{{ .Revision }}
|
key: v13-fbext-coverage-cache-{{ .Branch }}-{{ .Revision }}
|
||||||
paths:
|
paths:
|
||||||
- farmbot_ext/cover
|
- farmbot_ext/cover
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
|
@ -296,7 +296,7 @@ jobs:
|
||||||
- run: git submodule update --init --recursive
|
- run: git submodule update --init --recursive
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- v12-fbos-host-test-dependency-cache-{{ checksum "farmbot_os/mix.lock" }}
|
- v13-fbos-host-test-dependency-cache-{{ checksum "farmbot_os/mix.lock" }}
|
||||||
- <<: *install_elixir
|
- <<: *install_elixir
|
||||||
- <<: *install_hex_archives
|
- <<: *install_hex_archives
|
||||||
- run:
|
- run:
|
||||||
|
@ -308,12 +308,12 @@ jobs:
|
||||||
mix format --check-formatted
|
mix format --check-formatted
|
||||||
mix coveralls.json
|
mix coveralls.json
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: v12-fbos-host-test-dependency-cache-{{ checksum "farmbot_os/mix.lock" }}
|
key: v13-fbos-host-test-dependency-cache-{{ checksum "farmbot_os/mix.lock" }}
|
||||||
paths:
|
paths:
|
||||||
- farmbot_os/_build/host
|
- farmbot_os/_build/host
|
||||||
- farmbot_os/deps/host
|
- farmbot_os/deps/host
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: v12-fbos-coverage-cache-{{ .Branch }}-{{ .Revision }}
|
key: v13-fbos-coverage-cache-{{ .Branch }}-{{ .Revision }}
|
||||||
paths:
|
paths:
|
||||||
- farmbot_os/cover
|
- farmbot_os/cover
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
|
@ -333,25 +333,25 @@ jobs:
|
||||||
- <<: *install_hex_archives
|
- <<: *install_hex_archives
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- v12-fbsupport-test-dependency-cache-{{ checksum "mix.lock" }}
|
- v13-fbsupport-test-dependency-cache-{{ checksum "mix.lock" }}
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- v12-fbcs-coverage-cache-{{ .Branch }}-{{ .Revision }}
|
- v13-fbcs-coverage-cache-{{ .Branch }}-{{ .Revision }}
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- v12-fbcs-coverage-cache-{{ .Branch }}-{{ .Revision }}
|
- v13-fbcs-coverage-cache-{{ .Branch }}-{{ .Revision }}
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- v12-fbfw-coverage-cache-{{ .Branch }}-{{ .Revision }}
|
- v13-fbfw-coverage-cache-{{ .Branch }}-{{ .Revision }}
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- v12-fbcore-coverage-cache-{{ .Branch }}-{{ .Revision }}
|
- v13-fbcore-coverage-cache-{{ .Branch }}-{{ .Revision }}
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- v12-fbext-coverage-cache-{{ .Branch }}-{{ .Revision }}
|
- v13-fbext-coverage-cache-{{ .Branch }}-{{ .Revision }}
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- v12-fbos-coverage-cache-{{ .Branch }}-{{ .Revision }}
|
- v13-fbos-coverage-cache-{{ .Branch }}-{{ .Revision }}
|
||||||
- run:
|
- run:
|
||||||
name: Report Coverage
|
name: Report Coverage
|
||||||
working_directory: /nerves/build/
|
working_directory: /nerves/build/
|
||||||
|
@ -361,7 +361,7 @@ jobs:
|
||||||
mix format --check-formatted
|
mix format --check-formatted
|
||||||
mix farmbot.coveralls circle
|
mix farmbot.coveralls circle
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: v12-fbsupport-test-dependency-cache-{{ checksum "mix.lock" }}
|
key: v13-fbsupport-test-dependency-cache-{{ checksum "mix.lock" }}
|
||||||
paths:
|
paths:
|
||||||
- deps/
|
- deps/
|
||||||
- _build
|
- _build
|
||||||
|
|
|
@ -8,6 +8,7 @@ defmodule FarmbotCeleryScript.MixProject do
|
||||||
app: :farmbot_celery_script,
|
app: :farmbot_celery_script,
|
||||||
version: @version,
|
version: @version,
|
||||||
elixir: @elixir_version,
|
elixir: @elixir_version,
|
||||||
|
elixirc_options: [warnings_as_errors: true, ignore_module_conflict: true],
|
||||||
start_permanent: Mix.env() == :prod,
|
start_permanent: Mix.env() == :prod,
|
||||||
elixirc_paths: elixirc_paths(Mix.env()),
|
elixirc_paths: elixirc_paths(Mix.env()),
|
||||||
deps: deps(),
|
deps: deps(),
|
||||||
|
|
|
@ -14,6 +14,7 @@ defmodule FarmbotCore.MixProject do
|
||||||
app: :farmbot_core,
|
app: :farmbot_core,
|
||||||
description: "The Brains of the Farmbot Project",
|
description: "The Brains of the Farmbot Project",
|
||||||
elixir: @elixir_version,
|
elixir: @elixir_version,
|
||||||
|
elixirc_options: [warnings_as_errors: true, ignore_module_conflict: true],
|
||||||
make_clean: ["clean"],
|
make_clean: ["clean"],
|
||||||
make_cwd: __DIR__,
|
make_cwd: __DIR__,
|
||||||
compilers: [:elixir_make] ++ Mix.compilers(),
|
compilers: [:elixir_make] ++ Mix.compilers(),
|
||||||
|
|
|
@ -8,6 +8,7 @@ defmodule FarmbotExt.MixProject do
|
||||||
app: :farmbot_ext,
|
app: :farmbot_ext,
|
||||||
version: @version,
|
version: @version,
|
||||||
elixir: @elixir_version,
|
elixir: @elixir_version,
|
||||||
|
elixirc_options: [warnings_as_errors: true, ignore_module_conflict: true],
|
||||||
start_permanent: Mix.env() == :prod,
|
start_permanent: Mix.env() == :prod,
|
||||||
elixirc_paths: ["lib", "vendor"],
|
elixirc_paths: ["lib", "vendor"],
|
||||||
test_coverage: [tool: ExCoveralls],
|
test_coverage: [tool: ExCoveralls],
|
||||||
|
|
|
@ -16,6 +16,7 @@ defmodule FarmbotFirmware.MixProject do
|
||||||
app: :farmbot_firmware,
|
app: :farmbot_firmware,
|
||||||
version: @version,
|
version: @version,
|
||||||
elixir: @elixir_version,
|
elixir: @elixir_version,
|
||||||
|
elixirc_options: [warnings_as_errors: true, ignore_module_conflict: true],
|
||||||
arduino_commit: arduino_commit(),
|
arduino_commit: arduino_commit(),
|
||||||
start_permanent: Mix.env() == :prod,
|
start_permanent: Mix.env() == :prod,
|
||||||
test_coverage: [tool: ExCoveralls],
|
test_coverage: [tool: ExCoveralls],
|
||||||
|
|
|
@ -18,6 +18,7 @@ defmodule FarmbotOS.MixProject do
|
||||||
version: @version,
|
version: @version,
|
||||||
branch: @branch,
|
branch: @branch,
|
||||||
commit: @commit,
|
commit: @commit,
|
||||||
|
elixirc_options: [warnings_as_errors: true, ignore_module_conflict: true],
|
||||||
archives: [nerves_bootstrap: "~> 1.4"],
|
archives: [nerves_bootstrap: "~> 1.4"],
|
||||||
start_permanent: Mix.env() == :prod,
|
start_permanent: Mix.env() == :prod,
|
||||||
build_embedded: false,
|
build_embedded: false,
|
||||||
|
|
1
mix.exs
1
mix.exs
|
@ -15,6 +15,7 @@ defmodule FarmbotSupport.MixProject do
|
||||||
app: :farmbot_support,
|
app: :farmbot_support,
|
||||||
version: @version,
|
version: @version,
|
||||||
elixir: @elixir_version,
|
elixir: @elixir_version,
|
||||||
|
elixirc_options: [warnings_as_errors: true, ignore_module_conflict: true],
|
||||||
start_permanent: Mix.env() == :prod,
|
start_permanent: Mix.env() == :prod,
|
||||||
elixirc_paths: ["support"],
|
elixirc_paths: ["support"],
|
||||||
test_coverage: [tool: ExCoveralls],
|
test_coverage: [tool: ExCoveralls],
|
||||||
|
|
|
@ -191,6 +191,11 @@ defmodule Farmbot.TestSupport.CeleryScript.TestSysCalls do
|
||||||
call({:home, [axis, speed]})
|
call({:home, [axis, speed]})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@impl true
|
||||||
|
def zero(axis) do
|
||||||
|
call({:zero, [axis]})
|
||||||
|
end
|
||||||
|
|
||||||
defp call(data) do
|
defp call(data) do
|
||||||
GenServer.call(__MODULE__, data, :infinity)
|
GenServer.call(__MODULE__, data, :infinity)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue