From 28847aa896d37879ace2718328b2c68c335121d0 Mon Sep 17 00:00:00 2001 From: Jesse Gumm Date: Wed, 21 Aug 2019 11:59:43 -0500 Subject: [PATCH] Use local rebar3 only if there isn't one installed --- .travis.yml | 12 ++++++------ Makefile | 7 +++++++ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 332bd52..36c1b69 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,10 +5,10 @@ otp_release: - 21.2 - 21.0 - 20.0 - - 19.0 - - 18.0 - - 17.4 - - 17.0 - - R16B - - R15B03 + # - 19.0 + # - 18.0 + # - 17.4 + # - 17.0 + # - R16B + # - R15B03 before_script: "sudo apt-get --yes --force-yes install libpam-runtime python-software-properties software-properties-common" diff --git a/Makefile b/Makefile index e94d5d0..4ba8012 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,11 @@ +REBAR_PATH = $(shell which rebar3) + +ifeq ($(REBAR_PATH),) REBAR = $(shell pwd)/rebar3 +else +REBAR = rebar3 +endif + all: compile