add coveralls support
parent
3f85408114
commit
ec7e398206
|
@ -0,0 +1 @@
|
|||
service_name: travis-ci
|
|
@ -1,4 +1,5 @@
|
|||
[![Build Status](https://travis-ci.org/FarmBot/farmbot_os.svg?branch=master)](https://travis-ci.org/FarmBot/farmbot_os.svg?branch=master)
|
||||
[![Coverage Status](https://coveralls.io/repos/github/FarmBot/farmbot_os/badge.svg)](https://coveralls.io/github/FarmBot/farmbot_os)
|
||||
|
||||
# Farmbot OS
|
||||
The "brains" of the Farmbot Project
|
||||
|
|
|
@ -32,7 +32,8 @@ defmodule Farmbot.Mixfile do
|
|||
deps: deps() ++ system(@target),
|
||||
preferred_cli_env: [
|
||||
vcr: :test, "vcr.delete": :test, "vcr.check": :test, "vcr.show": :test,
|
||||
"all_test": :test
|
||||
"all_test": :test,
|
||||
"coveralls": :test, "coveralls.detail": :test, "coveralls.post": :test, "coveralls.html": :test, "coveralls.travis": :test
|
||||
],
|
||||
webpack_watch: Mix.env == :dev,
|
||||
webpack_cd: ".",
|
||||
|
@ -164,7 +165,9 @@ defmodule Farmbot.Mixfile do
|
|||
"firmware": ["compile"],
|
||||
"firmware.push": ["farmbot.warning"],
|
||||
"credo": ["credo list --only readability,warning,todo,inspect,refactor --ignore-checks todo,spec"],
|
||||
"all_test": ["credo", "coveralls"]]
|
||||
"all_test": ["credo", "coveralls"]
|
||||
"travis_test": ["credo", "coveralls.travis"]
|
||||
]
|
||||
|
||||
# TODO(Connor) Maybe warn if building firmware in dev mode?
|
||||
defp aliases(_system) do
|
||||
|
|
|
@ -35,6 +35,9 @@ clean:
|
|||
test: dev_env
|
||||
\tscripts/run_tests.sh
|
||||
|
||||
travis_test: dev_env
|
||||
\tscripts/run_travis_tests.sh
|
||||
|
||||
## End default portion.\n"
|
||||
|
||||
build_system_part = fn(sys) ->
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
cd apps/farmbot
|
||||
export MIX_ENV=test
|
||||
mix deps.get
|
||||
mix travis_test
|
Loading…
Reference in New Issue