automatic CI detection

This commit is contained in:
Andrei Neculau 2016-01-30 22:58:03 +01:00
parent 2decab92a2
commit 9958dae327
2 changed files with 9 additions and 2 deletions

View File

@ -18,6 +18,5 @@ otp_release:
- R15B
script:
- "[[ ${TRAVIS_OTP_RELEASE} == 18.1 ]] && make elvis || true"
- make .rebar/DEV_MODE
- make
- make test

View File

@ -28,7 +28,15 @@ SRCS := $(wildcard src/* include/* rebar.config)
SRC_BEAMS := $(patsubst src/%.erl, ebin/%.beam, $(wildcard src/*.erl))
.PHONY: all
all: deps ebin/jesse.app bin/jesse
all: maybe_dev deps ebin/jesse.app bin/jesse
.PHONY: maybe_dev
maybe_dev:
ifdef CI
$(MAKE) --no-print-directory .rebar/DEV_MODE
else
@:
endif
# Clean