add coveralls support

pull/256/head
connor rigby 2017-03-01 09:09:47 -08:00
parent 3f85408114
commit ec7e398206
5 changed files with 15 additions and 2 deletions

1
.coveralls.yml 100644
View File

@ -0,0 +1 @@
service_name: travis-ci

View File

@ -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

View File

@ -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

View File

@ -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) ->

View File

@ -0,0 +1,5 @@
#!/bin/bash
cd apps/farmbot
export MIX_ENV=test
mix deps.get
mix travis_test