Use local rebar3 only if there isn't one installed

This commit is contained in:
Jesse Gumm 2019-08-21 11:59:43 -05:00
parent a0b9ad0e5f
commit 28847aa896
2 changed files with 13 additions and 6 deletions

View file

@ -5,10 +5,10 @@ otp_release:
- 21.2 - 21.2
- 21.0 - 21.0
- 20.0 - 20.0
- 19.0 # - 19.0
- 18.0 # - 18.0
- 17.4 # - 17.4
- 17.0 # - 17.0
- R16B # - R16B
- R15B03 # - R15B03
before_script: "sudo apt-get --yes --force-yes install libpam-runtime python-software-properties software-properties-common" before_script: "sudo apt-get --yes --force-yes install libpam-runtime python-software-properties software-properties-common"

View file

@ -1,4 +1,11 @@
REBAR_PATH = $(shell which rebar3)
ifeq ($(REBAR_PATH),)
REBAR = $(shell pwd)/rebar3 REBAR = $(shell pwd)/rebar3
else
REBAR = rebar3
endif
all: compile all: compile