forked from eproxus/meck
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'upstream-master' into dev
Conflicts: .gitignore
- Loading branch information
Showing
33 changed files
with
3,240 additions
and
848 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
language: erlang | ||
notifications: | ||
disabled: true | ||
email: | ||
- hello@alind.io | ||
otp_release: | ||
- R15B | ||
- R14B04 | ||
- R14B03 | ||
- R14B02 | ||
- 17.0 | ||
- R16B03-1 | ||
- R16B | ||
- R15B03 | ||
before_script: "make get-deps" | ||
script: "make all" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,63 @@ | ||
REBAR=`which rebar || ./rebar` | ||
PLTFILE=$(CURDIR)/.deps.plt | ||
APP_DEPS=kernel stdlib eunit tools compiler | ||
ERLFLAGS= -pa $(CURDIR)/.eunit -pa $(CURDIR)/ebin -pa $(CURDIR)/deps/*/ebin | ||
|
||
all: compile | ||
REBAR="./rebar" | ||
ifeq ($(REBAR),) | ||
$(error "Rebar not available on this system") | ||
endif | ||
|
||
ERL = $(shell which erl) | ||
ifeq ($(ERL),) | ||
$(error "Erlang must be available on this system") | ||
endif | ||
|
||
BUILD_PLT_INC=$(shell test -d deps && echo '-r deps') | ||
DIALYZER_INC=$(shell test -d include && echo '-I include') $(shell test -d deps && echo '-I deps') | ||
|
||
.PHONY: all rebuild compile doc clean test dialyzer typer get-deps clean-deps \ | ||
shell clean-plt clean-doc distclean | ||
|
||
all: get-deps compile | ||
|
||
rebuild: distclean get-deps all | ||
|
||
get-deps: | ||
@$(REBAR) -C test.config get-deps | ||
|
||
compile: | ||
@$(REBAR) compile | ||
@$(REBAR) -C rebar.config skip_deps=true compile | ||
|
||
test: force | ||
@$(REBAR) eunit | ||
doc: | ||
@$(REBAR) -C test.config skip_deps=true doc | ||
|
||
clean: | ||
@$(REBAR) clean | ||
@$(REBAR) -C test.config skip_deps=true clean | ||
|
||
test: get-deps compile | ||
@$(REBAR) -C test.config compile | ||
@$(REBAR) -C test.config skip_deps=true eunit | ||
|
||
$(PLTFILE): | ||
- dialyzer --build_plt --apps $(APP_DEPS) $(BUILD_PLT_INC) --output_plt $(PLTFILE) | ||
|
||
dialyzer: compile $(PLTFILE) | ||
@dialyzer --fullpath --plt $(PLTFILE) $(DIALYZER_INC) -pa $(CURDIR)/ebin -c src --src | \ | ||
fgrep -v -f ./dialyzer.ignore-warnings | ||
|
||
typer: | ||
typer --plt $(PLTFILE) $(DIALYZER_INC) -r src | ||
|
||
shell: | ||
@$(ERL) $(ERLFLAGS) | ||
|
||
clean-plt: | ||
@rm -rf $(PLTFILE) | ||
|
||
clean-doc: | ||
@cd doc; ls * | grep -v overview.edoc | xargs rm -f | ||
|
||
clean-deps: | ||
@rm -rvf $(CURDIR)/deps/* | ||
|
||
force: ; | ||
distclean: clean clean-plt clean-doc clean-deps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
### meck:code_cover.erl has to call this unexported functions to do its | ||
### cover passthrough magic: | ||
Call to missing or unexported function cover:compile_beam/2 | ||
Call to missing or unexported function cover:get_term/1 | ||
Call to missing or unexported function cover:write/2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
defmodule Meck.Mixfile do | ||
use Mix.Project | ||
|
||
def project do | ||
[ | ||
app: :meck, | ||
version: "0.8.2", | ||
description: description, | ||
package: package, | ||
deps: [], | ||
] | ||
end | ||
|
||
defp description do | ||
""" | ||
A mocking framework for Erlang | ||
""" | ||
end | ||
|
||
defp package do | ||
[ | ||
files: [ | ||
"Makefile", | ||
"rebar.config", | ||
"test.config", | ||
"src", | ||
"test/*.erl", | ||
"test/cover_test_module.dontcompile", | ||
"test/include", | ||
"README.md", | ||
"LICENSE", | ||
"CHANGELOG", | ||
], | ||
contributors: [ | ||
"Adam Lindberg", | ||
], | ||
licenses: [ | ||
"Apache 2.0", | ||
], | ||
links: %{ | ||
"GitHub" => "https://github.com/eproxus/meck", | ||
}, | ||
] | ||
end | ||
end |
Oops, something went wrong.