Skip to content

Commit 50d5493

Browse files
committed
Dev: Standardize scripts
1 parent 4158b04 commit 50d5493

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

script/bootstrap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#! /bin/bash
2+
set -e
23

3-
bundle install -j8
4+
bundle install -j8 || bundle install

script/cibuild

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/bash
22
set -e
33

4-
bundle exec rake spec
5-
bundle exec rubocop -S -D
6-
gem build jekyll-redirect-from.gemspec
4+
script/test
5+
script/fmt
6+
bundle exec rake build

script/fmt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
set -e
3+
4+
echo "Rubocop $(bundle exec rubocop --version)"
5+
bundle exec rubocop -D -E $@
6+
success=$?
7+
if ((success != 0)); then
8+
echo -e "\nTry running \`script/fmt -a\` to automatically fix errors"
9+
fi
10+
exit $success

0 commit comments

Comments
 (0)