mirror of
https://github.com/valitydev/jesse.git
synced 2024-11-06 09:35:23 +00:00
automatic CI detection
This commit is contained in:
parent
2decab92a2
commit
9958dae327
@ -18,6 +18,5 @@ otp_release:
|
|||||||
- R15B
|
- R15B
|
||||||
script:
|
script:
|
||||||
- "[[ ${TRAVIS_OTP_RELEASE} == 18.1 ]] && make elvis || true"
|
- "[[ ${TRAVIS_OTP_RELEASE} == 18.1 ]] && make elvis || true"
|
||||||
- make .rebar/DEV_MODE
|
|
||||||
- make
|
- make
|
||||||
- make test
|
- make test
|
||||||
|
10
Makefile
10
Makefile
@ -28,7 +28,15 @@ SRCS := $(wildcard src/* include/* rebar.config)
|
|||||||
SRC_BEAMS := $(patsubst src/%.erl, ebin/%.beam, $(wildcard src/*.erl))
|
SRC_BEAMS := $(patsubst src/%.erl, ebin/%.beam, $(wildcard src/*.erl))
|
||||||
|
|
||||||
.PHONY: all
|
.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
|
# Clean
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user