Skip to content

Commit

Permalink
set up buildkite/codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
madninja committed Sep 18, 2019
1 parent 53cde5a commit 6e7edfd
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .buildkite/env/secrets.ejson
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"_public_key": "3e23327aef886bd34c530e280a9022b5225bef7757517b1ae122538935594b3c",
"environment": {
"CODECOV_TOKEN": "EJ[1:EnQ0gFluRWDwIUUVSFXaBRYiy3VIUyLQ5kyTEqrf1RQ=:y9GFquO0V6i0MH/juz9SWJ37+p388DRR:FoBs0OKhPmQuFpDqVKch/oWaP7+xYijpyIFUEi7YpFfvP4MMvd47LZQyGRirVIFaYiCFWA==]"
}
}
12 changes: 12 additions & 0 deletions .buildkite/hooks/pre-command
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

set -e
echo '--- :house_with_garden: Setting up the environment'

. "$HOME/.asdf/asdf.sh"
asdf local erlang 21.3
asdf local python 3.7.3
asdf local ruby 2.6.2

export EJSON_KEYDIR="$HOME/.ejson"
eval "$(ejson2env .buildkite/env/secrets.ejson)"
6 changes: 6 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
steps:
- commands:
- "make ci"
name: ":hammer: build"
agents:
queue: "erlang"
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ compile:
clean:
$(REBAR) clean

test: compile
test:
$(REBAR) as test do eunit,ct

typecheck:
$(REBAR) dialyzer

ci:
$(REBAR) do dialyzer,xref && $(REBAR) as test do eunit,ct,cover
$(REBAR) covertool generate
codecov --required -f _build/test/covertool/erlang_tpke.covertool.xml
9 changes: 7 additions & 2 deletions rebar.config
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
%% -*- erlang -*-

{erl_opts, [debug_info, warn_untyped_record, warnings_as_errors]}.

{cover_export_enabled, true}.
{cover_enabled, true}.
{cover_opts, [verbose]}.

{deps, [
{erlang_pbc, ".*", {git, "https://github.com/helium/erlang_pbc.git", {branch, "master"}}}
]}.

{plugins, [
{rebar3_eqc, {git, "https://github.com/Vagabond/rebar3-eqc-plugin", {branch, "master"}}}
]}.
{rebar3_eqc, {git, "https://github.com/Vagabond/rebar3-eqc-plugin", {branch, "master"}}},
covertool
]}.

{dialyzer, [
{warnings, [unknown]},
Expand Down

0 comments on commit 6e7edfd

Please sign in to comment.