Skip to content

Commit

Permalink
Custom CI images (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
jodosha committed Jul 10, 2018
1 parent f9ca1d3 commit c0f4196
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .circleci/config.yml
Expand Up @@ -6,7 +6,7 @@ version: 2
jobs:
"ruby-2.3":
docker:
- image: circleci/ruby:2.3.7
- image: hanami/ruby-2.3
working_directory: ~/hanami-utils
steps:
- checkout
Expand All @@ -31,7 +31,7 @@ jobs:
./script/ci
"ruby-2.4":
docker:
- image: circleci/ruby:2.4.4
- image: hanami/ruby-2.4
working_directory: ~/hanami-utils
steps:
- checkout
Expand All @@ -56,7 +56,7 @@ jobs:
./script/ci
"ruby-2.5":
docker:
- image: circleci/ruby:2.5.1
- image: hanami/ruby-2.5
working_directory: ~/hanami-utils
steps:
- checkout
Expand All @@ -81,7 +81,7 @@ jobs:
./script/ci
"jruby-9.1":
docker:
- image: circleci/jruby:9.1-jdk
- image: hanami/jruby-9.1
working_directory: ~/hanami-utils
steps:
- checkout
Expand All @@ -106,7 +106,7 @@ jobs:
./script/ci
"jruby-9.2":
docker:
- image: circleci/jruby:9.2.0.0
- image: hanami/jruby-9.2
working_directory: ~/hanami-utils
steps:
- checkout
Expand Down
6 changes: 6 additions & 0 deletions script/ci
Expand Up @@ -8,6 +8,11 @@ prepare_build() {
fi
}

print_ruby_version() {
echo "Using $(ruby -v)"
echo
}

run_code_quality_checks() {
bundle exec rubocop .
}
Expand Down Expand Up @@ -52,6 +57,7 @@ run_test() {

main() {
prepare_build &&
print_ruby_version &&
run_code_quality_checks &&
run_unit_tests &&
run_isolation_tests &&
Expand Down

0 comments on commit c0f4196

Please sign in to comment.