зеркало из https://github.com/github/explore.git
Use scripts-to-rule-them-all format
This commit is contained in:
Родитель
a9d13ec137
Коммит
e86b48a48a
|
@ -0,0 +1 @@
|
|||
2.4.1
|
12
.travis.yml
12
.travis.yml
|
@ -1,8 +1,6 @@
|
|||
language: ruby
|
||||
cache: bundler
|
||||
sudo: false
|
||||
install:
|
||||
- bundle install
|
||||
notifications:
|
||||
email: false
|
||||
script: rake
|
||||
cache:
|
||||
bundler: true
|
||||
bundler_args: --jobs=3 --retry=3
|
||||
before_install: ./script/setup
|
||||
script: ./script/cibuild
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
tap "github/bootstrap"
|
||||
|
||||
brew "rbenv"
|
||||
brew "ruby-build"
|
||||
|
||||
brew "imagemagick"
|
|
@ -7,6 +7,5 @@ There are some lint tests in place to ensure each topic is formatted in the way
|
|||
run the tests using:
|
||||
|
||||
```bash
|
||||
bundle install
|
||||
rake
|
||||
./script/cibuild
|
||||
```
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
./script/setup
|
||||
|
||||
set +e
|
||||
|
||||
bundle exec rake test
|
||||
RAKE_EXIT="$?"
|
||||
bundle exec rubocop --display-cop-names
|
||||
RUBOCOP_EXIT="$?"
|
||||
[[ "$RAKE_EXIT" == 0 && "$RUBOCOP_EXIT" == 0 ]]
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
if [ "$(uname -s)" = "Darwin" ]; then
|
||||
brew bundle check &>/dev/null || brew bundle
|
||||
rbenv version-name &>/dev/null || brew bootstrap-rbenv-ruby
|
||||
fi
|
||||
|
||||
bundle check &>/dev/null || bundle install
|
Загрузка…
Ссылка в новой задаче