Skip to content

Commit

Permalink
Merge pull request #9 from danikp/master
Browse files Browse the repository at this point in the history
travis-ci stuff
  • Loading branch information
danikp committed Jan 16, 2015
2 parents 279fe6a + ed10092 commit 9750da3
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
ebin
aleppo_parser.erl
aleppo_parser.erl
/.settings/
/.project
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
language: erlang
otp_release:
- 17.1
- 17.0
- R16B03-1
- R16B02
- R16B01

script:
- make
- mkdir plt
- ./travis-dialyzer.sh
notifications:
email: false
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Aleppo: ALternative Erlang Pre-ProcessOr
========================================

[![Build Status](https://travis-ci.org/ChicagoBoss/aleppo.svg)](https://travis-ci.org/ChicagoBoss/aleppo)

Aleppo is an alternative to `epp(3erl)`, and is mainly intended for Erlang compiler hackers. The problem with EPP is that it only operates on Erlang source files. Aleppo will operate directly on tokens returned by erl_scan.

erl_scan -> *aleppo* -> erl_parse -> compile
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/aleppo-$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 9750da3

Please sign in to comment.