Skip to content

Commit

Permalink
chore: bump up bundler version
Browse files Browse the repository at this point in the history
  • Loading branch information
tanakaworld committed Mar 24, 2019
1 parent 2bd01a8 commit 224afe3
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 22 deletions.
53 changes: 32 additions & 21 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ jobs:
build:
docker:
# specify the version you desire here
- image: circleci/ruby:2.5.0-node-browsers
- image: circleci/ruby:2.6.0-node-browsers
environment:
BUNDLER_VERSION: 2.0.1

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
Expand All @@ -17,45 +19,54 @@ jobs:
working_directory: ~/repo

steps:
- run:
name: setup bundler
command: |
sudo gem update --system
sudo gem uninstall bundler
sudo rm /usr/local/bin/bundle
sudo rm /usr/local/bin/bundler
sudo gem install bundler
- checkout

# Download and cache dependencies
- restore_cache:
keys:
keys:
- v1-dependencies-{{ checksum "Gemfile.lock" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run:
name: install dependencies
command: |
bundle install --jobs=4 --retry=3 --path vendor/bundle
name: install dependencies
command: |
bundle install --jobs=4 --retry=3 --path vendor/bundle
- save_cache:
paths:
- ./vendor/bundle
key: v1-dependencies-{{ checksum "Gemfile.lock" }}
paths:
- ./vendor/bundle
key: v1-dependencies-{{ checksum "Gemfile.lock" }}

# Database setup
- run:
name: setup Database
command: |
cd test/dummy
bundle exec rake db:create
bundle exec rake db:schema:load
name: setup Database
command: |
cd test/dummy
bundle exec rake db:create
bundle exec rake db:schema:load
# run tests!
- run:
name: run tests
command: |
mkdir /tmp/test-results
TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)"
name: run tests
command: |
mkdir /tmp/test-results
TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)"
bin/test
bin/test
# collect reports
- store_test_results:
path: /tmp/test-results
path: /tmp/test-results
- store_artifacts:
path: /tmp/test-results
destination: test-results
path: /tmp/test-results
destination: test-results
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,4 @@ DEPENDENCIES
sqlite3 (~> 1.3.6)

BUNDLED WITH
1.17.3
2.0.1

0 comments on commit 224afe3

Please sign in to comment.