Skip to content

Commit e86b48a

Browse files
committed
Use scripts-to-rule-them-all format
1 parent a9d13ec commit e86b48a

File tree

6 files changed

+38
-9
lines changed

6 files changed

+38
-9
lines changed

.ruby-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.4.1

.travis.yml

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1+
language: ruby
2+
cache: bundler
13
sudo: false
2-
install:
3-
- bundle install
4-
notifications:
5-
email: false
6-
script: rake
7-
cache:
8-
bundler: true
4+
bundler_args: --jobs=3 --retry=3
5+
before_install: ./script/setup
6+
script: ./script/cibuild

Brewfile

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
tap "github/bootstrap"
2+
3+
brew "rbenv"
4+
brew "ruby-build"
5+
6+
brew "imagemagick"

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@ There are some lint tests in place to ensure each topic is formatted in the way
77
run the tests using:
88

99
```bash
10-
bundle install
11-
rake
10+
./script/cibuild
1211
```

script/cibuild

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
set -e
3+
4+
cd "$(dirname "$0")/.."
5+
6+
./script/setup
7+
8+
set +e
9+
10+
bundle exec rake test
11+
RAKE_EXIT="$?"
12+
bundle exec rubocop --display-cop-names
13+
RUBOCOP_EXIT="$?"
14+
[[ "$RAKE_EXIT" == 0 && "$RUBOCOP_EXIT" == 0 ]]

script/setup

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
set -e
3+
4+
cd "$(dirname "$0")/.."
5+
6+
if [ "$(uname -s)" = "Darwin" ]; then
7+
brew bundle check &>/dev/null || brew bundle
8+
rbenv version-name &>/dev/null || brew bootstrap-rbenv-ruby
9+
fi
10+
11+
bundle check &>/dev/null || bundle install

0 commit comments

Comments
 (0)