Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some basic stuff #1

Merged
merged 4 commits into from
Jan 16, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ebin/
*~
/.project
/.settings/
16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
language: erlang
otp_release:
- 17.1
- 17.0
- R16B03-1
- R16B02
- R16B01

script:
- rebar get-deps
- rebar compile
- rebar eunit -v skip_deps=true
- mkdir plt
- ./travis-dialyzer.sh
notifications:
email: false
21 changes: 21 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
ERL=erl
REBAR=./rebar
GIT = git
REBAR_VER = 2.5.1

all: compile

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

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 @@
tiny_pq : A priority queue based on gb_trees
--
[![Build Status](https://travis-ci.org/ChicagoBoss/tiny_pq.svg)](https://travis-ci.org/ChicagoBoss/tiny_pq)
--

tiny_pq stores values associated with a priority, and provides functions for
purging low-priority items efficiently. Internally, tiny_pq uses gb_trees,
Expand Down
Binary file modified rebar
Binary file not shown.
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/tinypq-$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
#