forked from ErlyORM/boss_db
-
Notifications
You must be signed in to change notification settings - Fork 0
/
travis-dialyzer.sh
executable file
·42 lines (34 loc) · 1019 Bytes
/
travis-dialyzer.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
PLT=plt/boss_db-$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
#