-
Notifications
You must be signed in to change notification settings - Fork 0
/
code_test.sh
30 lines (24 loc) · 867 Bytes
/
code_test.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
#!/bin/bash
DIR_PARENT="${PWD%/*}"
DIR_TMP="$DIR_PARENT/tmp"
mkdir -p log
rm -rf tmp
echo '--------------'
echo 'bundle install'
bin/setup >/dev/null
echo
echo '----------------------'
echo 'bundle exec rubocop -D'
bundle exec rubocop -D
echo
echo '------------------------'
echo 'bundle exec bundle-audit'
bundle exec bundle-audit
echo '------------------------------------------------------------------------'
echo 'bundle viz --file=log/diagram-gems --format=jpg --requirements --version'
bundle viz --file=log/diagram-gems --format=jpg --requirements --version
echo 'Gem dependency diagram: log/diagram-gems.jpg'
echo '----------------------------------------------------------'
echo 'bundle exec gemsurance --output log/gemsurance_report.html'
bundle exec gemsurance --output log/gemsurance_report.html
echo 'Gemsurance Report: log/gemsurance_report.html'