-
Notifications
You must be signed in to change notification settings - Fork 50
/
dev.yml
38 lines (37 loc) · 879 Bytes
/
dev.yml
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
up:
- packages:
- fswatch
- ruby
- bundler
commands:
test:
run: |
if [ "$#" -eq 1 ] && [[ -f $1 ]];
then
rake test TEST=$1
else
rake test $@
fi
style: "bundle exec rubocop -D"
typecheck:
run: srb
aliases: [tc]
watch:
aliases: [w]
subcommands:
style:
run: fswatch -e coverage -e "/\." -o . | xargs -n1 -I@ rake style
aliases: [st]
test:
run: fswatch -e coverage -e "/\." -o . | xargs -n1 -I@ rake test
aliases: [t]
typecheck:
run: fswatch -e coverage -e "/\." -o . | xargs -n1 -I@ srb
aliases: [tc]
check:
run: fswatch -e coverage -e "/\." -o . | xargs -n1 -I@ bash -c 'srb && rake style test'
aliases: [ck]
fastcheck:
Test: bundle exec rake test
Style: bundle exec rake style
Typecheck: bundle exec srb tc