File tree Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -28,30 +28,31 @@ jobs:
28
28
# Reference: https://www.benpickles.com/articles/76-better-ruby-gem-caching-on-circleci
29
29
- restore_cache :
30
30
keys :
31
- - bundler-{{ checksum "Gemfile.lock" }}
31
+ - bundler-{{ checksum "Gemfile.lock" }}-v2
32
32
- bundler-
33
33
34
34
- run : bundle install --clean --path vendor/bundle
35
35
36
36
- save_cache :
37
- key : bundler-{{ checksum "Gemfile.lock" }}
37
+ key : bundler-{{ checksum "Gemfile.lock" }}-v2
38
38
paths :
39
39
- vendor/bundle
40
40
41
41
# Cache Dependencies
42
42
- type : cache-save
43
43
name : Store bundle cache
44
- key : tutor_virtual-{{ checksum "Gemfile.lock" }}
44
+ key : tutor_virtual-{{ checksum "Gemfile.lock" }}-v2
45
45
paths :
46
46
- vendor/bundle
47
47
48
- # # Bundle install dependencies
49
- - run : bundle install
50
-
51
48
# Wait for DB
52
49
- run : dockerize -wait tcp://localhost:5432 -timeout 1m
53
50
54
- - run : rake db:create # creates the database
51
+ # # Bundle install dependencies
52
+ - run : bundle install
53
+ - run : bundle update
54
+
55
+ - run : bundle exec rake db:create # creates the database
55
56
- run : rake db:migrate
56
57
57
58
# Run the tests
Original file line number Diff line number Diff line change @@ -36,8 +36,6 @@ gem 'jbuilder', '~> 2.5'
36
36
# Use Capistrano for deployment
37
37
# gem 'capistrano-rails', group: :development
38
38
39
- gem 'rake' , '~> 13.0.0'
40
-
41
39
# Reduces boot times through caching; required in config/boot.rb
42
40
gem 'bootsnap' , '>= 1.1.0' , require : false
43
41
Original file line number Diff line number Diff line change @@ -214,7 +214,6 @@ DEPENDENCIES
214
214
pg (>= 0.18 , < 2.0 )
215
215
puma (~> 3.11 )
216
216
rails (~> 5.2.3 )
217
- rake (~> 13.0.0 )
218
217
sass-rails (~> 5.0 )
219
218
selenium-webdriver
220
219
spring
You can’t perform that action at this time.
0 commit comments