From b89e8e27c3637d63d15b412cf7928512beab6546 Mon Sep 17 00:00:00 2001 From: Paul Oliver Date: Sat, 6 Aug 2016 19:38:10 +1200 Subject: [PATCH] Fix Travis build --- .travis.yml | 10 ++++++---- Makefile | 41 ++++++++++++++++++++++++----------------- 2 files changed, 30 insertions(+), 21 deletions(-) diff --git a/.travis.yml b/.travis.yml index f39fff3..b3451ca 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,12 @@ 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: disabled: true -branches: - only: - - develop - - 0.1.0 + otp_release: - R15B02 - R15B01 diff --git a/Makefile b/Makefile index 3e8b822..6ea1c18 100644 --- a/Makefile +++ b/Makefile @@ -1,23 +1,30 @@ -.PHONY: doc +REBAR?=rebar3 + +.PHONY: \ + all \ + clean \ + nuke \ + test \ + update \ + dialyzer all: - ./rebar compile - ./rebar doc - ./rebar xref - ./rebar eunit - -compile: - ./rebar compile - -doc: - ./rebar doc - -xref: compile - ./rebar xref + @$(REBAR) compile clean: - ./rebar clean + @$(REBAR) clean -test: xref - ./rebar eunit +nuke: clean + @rm -rf _build +test: + @$(REBAR) eunit + +update: + @$(REBAR) update + +dialyzer: + @$(REBAR) dialyzer + +coveralls: + @${REBAR} coveralls send