Skip to content

Commit

Permalink
Adds travis and internalizes rebar
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivo Jesus committed Nov 4, 2016
1 parent 586118e commit 3952471
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 7 deletions.
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
language: erlang

otp_release:
- 18.0

sudo: false

script:
- make test-get-deps
- make test-all

notifications:
recipients:
- [email protected]
16 changes: 9 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
REBAR ?= "$(PWD)/bin/rebar"

compile:
@rebar compile
@$(REBAR) compile

escriptize: compile
@rebar escriptize
@$(REBAR) escriptize

clean:
@rebar clean
@$(REBAR) clean

test-get-deps:
@RUNENV=test rebar get-deps
@RUNENV=test $(REBAR) get-deps

eunit:
@RUNENV=test rebar eunit
@RUNENV=test $(REBAR) eunit

ct: clean
@RUNENV=test rebar compile
@RUNENV=test $(REBAR) compile
@RUNENV=test ct_run -spec test/ct/spec -logdir test/ct/spec_out -pa ./ebin -pa ./deps/*/ebin

ct-cover: clean
@RUNENV=test rebar compile
@RUNENV=test $(REBAR) compile
@RUNENV=test ct_run -spec test/ct/spec -cover test/ct/coverspec -logdir test/ct/spec_out -pa ./ebin -pa ./deps/*/ebin

ct-clean:
Expand Down
Binary file added bin/rebar
Binary file not shown.

0 comments on commit 3952471

Please sign in to comment.