質問編集履歴
2
修正したソースコードを追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -206,4 +206,59 @@
|
|
206
206
|
|
207
207
|
Step failed
|
208
208
|
```
|
209
|
-
このエラーメッセージから[この記事](https://qiita.com/tanakaworld/items/e15ff9dbdd4b628378c2)を参考に、bundlerのバージョンを指定する方法を実装。
|
209
|
+
このエラーメッセージから[この記事](https://qiita.com/tanakaworld/items/e15ff9dbdd4b628378c2)を参考に、bundlerのバージョンを指定する方法を実装。
|
210
|
+
|
211
|
+
# 追記2
|
212
|
+
## 修正したソースコード .config/config.yml
|
213
|
+
|
214
|
+
```
|
215
|
+
version: 2.1
|
216
|
+
|
217
|
+
orbs:
|
218
|
+
ruby: circleci/ruby@1.1.0
|
219
|
+
|
220
|
+
jobs:
|
221
|
+
build:
|
222
|
+
docker:
|
223
|
+
- image: circleci/ruby:2.5.1-node-browsers
|
224
|
+
environment:
|
225
|
+
BUNDLER_VERSION: 2.1.4 #修正箇所
|
226
|
+
steps:
|
227
|
+
- checkout
|
228
|
+
- ruby/install-deps
|
229
|
+
|
230
|
+
test:
|
231
|
+
parallelism: 3
|
232
|
+
docker:
|
233
|
+
- image: circleci/ruby:2.5.1-node-browsers
|
234
|
+
environment:
|
235
|
+
DB_HOST: 127.0.0.1
|
236
|
+
RAILS_ENV: test
|
237
|
+
BUNDLER_VERSION: 2.1.4
|
238
|
+
- image: circleci/mysql:8.0
|
239
|
+
command: --default-authentication-plugin=mysql_native_password
|
240
|
+
environment:
|
241
|
+
MYSQL_USER: yuki
|
242
|
+
MYSQL_DB: golfour_test
|
243
|
+
steps:
|
244
|
+
- checkout
|
245
|
+
- ruby/install-deps
|
246
|
+
- run:
|
247
|
+
name: Wait for DB
|
248
|
+
command: dockerize -wait tcp://localhost:3306 -timeout 1m
|
249
|
+
- run:
|
250
|
+
name: Database setup
|
251
|
+
command: bundle exec rails db:schema:load --trace
|
252
|
+
# Run rspec in parallel
|
253
|
+
- ruby/rspec-test
|
254
|
+
- ruby/rubocop-check
|
255
|
+
|
256
|
+
workflows:
|
257
|
+
version: 2
|
258
|
+
build_and_test:
|
259
|
+
jobs:
|
260
|
+
- build
|
261
|
+
- test:
|
262
|
+
requires:
|
263
|
+
- build
|
264
|
+
```
|
1
エラーコードを追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -184,4 +184,26 @@
|
|
184
184
|
RUN bundle install
|
185
185
|
|
186
186
|
ADD . /workdir
|
187
|
-
```
|
187
|
+
```
|
188
|
+
|
189
|
+
|
190
|
+
# 追記
|
191
|
+
## 最初に発生したエラーメッセージ
|
192
|
+
|
193
|
+
```console
|
194
|
+
~@yk golfour_aws % circleci local execute
|
195
|
+
・・・
|
196
|
+
Gemfile.lock is bundled with bundler version 2.1.4
|
197
|
+
Installing bundler 2.1.4
|
198
|
+
Fetching: bundler-2.1.4.gem (100%)
|
199
|
+
Successfully installed bundler-2.1.4
|
200
|
+
1 gem installed
|
201
|
+
/bin/bash: line 21: ./vendor/bundle: No such file or directory
|
202
|
+
You must use Bundler 2 or greater with this lockfile.
|
203
|
+
You must use Bundler 2 or greater with this lockfile.
|
204
|
+
Error:
|
205
|
+
Exited with code exit status 20
|
206
|
+
|
207
|
+
Step failed
|
208
|
+
```
|
209
|
+
このエラーメッセージから[この記事](https://qiita.com/tanakaworld/items/e15ff9dbdd4b628378c2)を参考に、bundlerのバージョンを指定する方法を実装。
|