Fix Travis build

This commit is contained in:
Paul Oliver 2016-08-06 19:38:10 +12:00
parent e963bef653
commit b89e8e27c3
No known key found for this signature in database
GPG Key ID: 9250069E8AF6BF4F
2 changed files with 30 additions and 21 deletions

View File

@ -1,10 +1,12 @@
language: erlang language: erlang
install: wget https://github.com/erlang/rebar3/releases/download/3.1.0/rebar3 && chmod 755 rebar3
script: PATH=.:$PATH make update test dialyzer
notifications: notifications:
disabled: true disabled: true
branches:
only:
- develop
- 0.1.0
otp_release: otp_release:
- R15B02 - R15B02
- R15B01 - R15B01

View File

@ -1,23 +1,30 @@
.PHONY: doc REBAR?=rebar3
.PHONY: \
all \
clean \
nuke \
test \
update \
dialyzer
all: all:
./rebar compile @$(REBAR) compile
./rebar doc
./rebar xref
./rebar eunit
compile:
./rebar compile
doc:
./rebar doc
xref: compile
./rebar xref
clean: clean:
./rebar clean @$(REBAR) clean
test: xref nuke: clean
./rebar eunit @rm -rf _build
test:
@$(REBAR) eunit
update:
@$(REBAR) update
dialyzer:
@$(REBAR) dialyzer
coveralls:
@${REBAR} coveralls send