Skip to content

Commit

Permalink
Merge pull request #15 from danikp/master
Browse files Browse the repository at this point in the history
Some basic stuff
  • Loading branch information
danikp committed Jan 16, 2015
2 parents 6c0e45c + 3733f9d commit a610b48
Show file tree
Hide file tree
Showing 8 changed files with 79 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
ebin/
*~
/.project
/.settings/
17 changes: 17 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
language: erlang
otp_release:
- 17.1
- 17.0
- R16B03-1
- R16B02
- R16B01

script:
- rebar get-deps
- rebar compile
- rebar eunit -v skip_deps=true
- make test
- mkdir plt
- ./travis-dialyzer.sh
notifications:
email: false
15 changes: 14 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
ERL=erl
REBAR=./rebar

GIT = git
REBAR_VER = 2.5.1

all: compile

compile:
@$(REBAR) get-deps
@$(REBAR) compile

compile_test:
Expand All @@ -15,3 +17,14 @@ test: compile compile_test
$(ERL) -noshell -pa ebin -pa ebintest -pa deps/tiny_pq/ebin \
-s tinymq_test run_tests \
-s init stop

clean:
@$(REBAR) clean

rebar_src:
@rm -rf $(PWD)/rebar_src
@$(GIT) clone git://github.com/rebar/rebar.git rebar_src
@$(GIT) -C rebar_src checkout tags/$(REBAR_VER)
@cd $(PWD)/rebar_src/; ./bootstrap
@cp $(PWD)/rebar_src/rebar $(PWD)
@rm -rf $(PWD)/rebar_src
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
TinyMQ - A diminutive message queue
--
[![Build Status](https://travis-ci.org/ChicagoBoss/tinymq.svg)](https://travis-ci.org/ChicagoBoss/tinymq)


TinyMQ is a channel-based, in-memory message queue for Erlang. Channels are
identified by strings (whatever you want) and are automatically created and
Expand Down
Binary file modified rebar
Binary file not shown.
2 changes: 1 addition & 1 deletion rebar.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{erl_opts, [debug_info]}.
{deps, [
{tiny_pq, ".*", {git, "git://github.com/ChicagoBoss/tiny_pq.git", {tag, "v0.8.9"}}}
{tiny_pq, ".*", {git, "git://github.com/ChicagoBoss/tiny_pq.git", {tag, "v0.8.14"}}}
]}.
2 changes: 1 addition & 1 deletion src/tinymq.app.src
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{application, tinymq,
[
{description, "TinyMQ: a diminutive message queue"},
{vsn, "0.1.1"},
{vsn, "0.8.14"},
{registered, [tinymq]},
{modules, []},
{applications, [
Expand Down
42 changes: 42 additions & 0 deletions travis-dialyzer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/bash


PLT=plt/tinymq-$RANDOM.plt
echo "PLT File $PLT"
export PATH=$PATH:/usr/local/bin:/usr/bin
echo "Building PLT, may take a few minutes"
dialyzer --build_plt --apps kernel stdlib\
--output_plt $PLT > /dev/null
for app in mnesia inets ssl crypto \
erts public_key runtime_tools compiler asn1 hipe\
syntax_tools
do
echo $app
dialyzer --add_to_plt --apps $app\
--plt $PLT > /dev/null
done
rm -f deps/riak_*/ebin/*_pb.beam
echo "********************************************************************************"
for app in $(ls deps/)
do
echo "Adding $app"
dialyzer --add_to_plt --apps deps/$app \
--plt $PLT > /dev/null


done
echo "********************************************************************************"
echo ""

dialyzer ebin/ \
-Werror_handling \
-Wno_undefined_callbacks \
-Wrace_conditions \
--statistics -n \
--fullpath \
-n \
--plt $PLT # -Wunmatched_returns
#



0 comments on commit a610b48

Please sign in to comment.