Skip to content
Find file
executable file 70 lines (51 sloc) 1.61 KB
.PHONY: test docs doc
all: compile
compile:
./rebar compile
dialyzer-deps-compile:
./rebar --config "rebar.dialyzer.config" get-deps
./rebar --config "rebar.dialyzer.config" compile
clean:
./rebar clean
docs:
utils/make_docs/make_docs.el
@(cd doc;perl add_disqus.pl)
doc: docs
eunit: clean compile
./rebar eunit
test:
mkdir -p test
rm -fr test/browsertest
$(MAKE) eunit
git clone git://github.com/nitrogen/NitrogenProject.com.git test/browsertest
mkdir -p test/browsertest/deps
ln -s ../../.. test/browsertest/deps/nitrogen_core
cd test/browsertest; make test_all TESTLOGDIR="../results.$(shell date +%Y-%m-%d.%H%M%S)"
DEPS_PLT=$(CURDIR)/.deps_plt
DEPS=erts kernel stdlib crypto sasl
# removed 'sasl' in attempt to minimize memory usage for Travis
$(DEPS_PLT):
@echo Building local plt at $(DEPS_PLT)
@echo
@(dialyzer --output_plt $(DEPS_PLT) --build_plt --apps $(DEPS) -r ./deps)
dialyzer: dialyzer-deps-compile $(DEPS_PLT)
@(dialyzer --fullpath --plt $(DEPS_PLT) -Wrace_conditions -r ./ebin)
dialyzer-no-race: dialyzer-deps-compile $(DEPS_PLT)
@(dialyzer --fullpath --plt $(DEPS_PLT) -r ./ebin)
# TRAVIS-CI STUFF
ERLANG_VERSION_CHECK := erl -eval "io:format(\"~s\",[erlang:system_info(otp_release)]), halt()." -noshell
ERLANG_VERSION = $(shell $(ERLANG_VERSION_CHECK))
# This is primarily for Travis build testing, as each build instruction will overwrite the previous
travis: eunit $(ERLANG_VERSION)
R15B: dialyzer
R15B01: dialyzer
R15B02: dialyzer-no-race
R15B03: dialyzer
R16B: dialyzer
R16B01: dialyzer
R16B02: dialyzer
R16B03-1: dialyzer
17: dialyzer
18: dialyzer
vim:
utils/vim-headers/add_vim.sh
Jump to Line
Something went wrong with that request. Please try again.