質問編集履歴
3
ご指摘頂きました内容修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -155,4 +155,80 @@
|
|
155
155
|
|
156
156
|
Windows10
|
157
157
|
gemのインストールは下記のように実施しています。
|
158
|
-
bundle install --path vendor/bundle
|
158
|
+
bundle install --path vendor/bundle
|
159
|
+
|
160
|
+
### 試したこと
|
161
|
+
|
162
|
+
```
|
163
|
+
version: 2
|
164
|
+
|
165
|
+
jobs:
|
166
|
+
test:
|
167
|
+
docker:
|
168
|
+
- image: circleci/ruby:2.4.5-node-browsers
|
169
|
+
environment:
|
170
|
+
RAILS_ENV: test
|
171
|
+
BUNDLE_PATH: "vendor/bundle"
|
172
|
+
BUNDLER_VERSION: 2.0.2
|
173
|
+
- image: circleci/mysql:5.6
|
174
|
+
environment:
|
175
|
+
MYSQL_ALLOW_EMPTY_PASSWORD: true
|
176
|
+
MYSQL_ROOT_PASSWORD: ''
|
177
|
+
MYSQL_DATABASE: circleruby_test_test
|
178
|
+
working_directory: ~/repo
|
179
|
+
steps:
|
180
|
+
- checkout
|
181
|
+
- run:
|
182
|
+
name: bundle のセットアップ
|
183
|
+
command: |
|
184
|
+
sudo gem update --system
|
185
|
+
sudo gem uninstall bundler
|
186
|
+
sudo rm /usr/local/bin/bundle
|
187
|
+
#sudo rm /usr/local/bin/bundler
|
188
|
+
sudo gem install bundler
|
189
|
+
- restore_cache:
|
190
|
+
keys:
|
191
|
+
- v1-dependencies-{{ checksum "Gemfile.lock" }}
|
192
|
+
# fallback to using the latest cache if no exact match is found
|
193
|
+
- v1-dependencies-
|
194
|
+
- run:
|
195
|
+
name: install bundle
|
196
|
+
command: |
|
197
|
+
bundle install --jobs=4 --retry=3 --path vendor/bundle
|
198
|
+
- save_cache:
|
199
|
+
paths:
|
200
|
+
- ./vendor/bundle
|
201
|
+
key: v1-dependencies-{{ checksum "Gemfile.lock" }}
|
202
|
+
- run:
|
203
|
+
name: データベースの起動を待機
|
204
|
+
command: dockerize -wait tcp://127.0.0.1:3306 -timeout 1m
|
205
|
+
- run:
|
206
|
+
name: データベースのセットアップ
|
207
|
+
command: bundle exec rake db:schema:load
|
208
|
+
- run:
|
209
|
+
name: gem install bundler
|
210
|
+
command: gem install bundler
|
211
|
+
- run:
|
212
|
+
name: rspecを実行
|
213
|
+
command: bundle exec rspec
|
214
|
+
|
215
|
+
code-check:
|
216
|
+
docker:
|
217
|
+
- image: circleci/ruby:2.4.5-node-browsers
|
218
|
+
working_directory: ~/repo
|
219
|
+
steps:
|
220
|
+
- checkout
|
221
|
+
- run:
|
222
|
+
name: bundle install
|
223
|
+
command: bundle install
|
224
|
+
- run:
|
225
|
+
name: rubocopを実行
|
226
|
+
command: bundle exec rubocop
|
227
|
+
|
228
|
+
workflows:
|
229
|
+
version: 2
|
230
|
+
workflows:
|
231
|
+
jobs:
|
232
|
+
- test
|
233
|
+
- code-check
|
234
|
+
```
|
2
タグ不足
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
Rails CircleCI
|
1
|
+
Rails CircleCI Docker bundler: command not found:
|
body
CHANGED
File without changes
|
1
誤字
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
Rails
|
1
|
+
Rails CircleCI bundler: command not found:
|
body
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
### 前提・実現したいこと
|
2
2
|
|
3
3
|
GitHubへPUSH時に、
|
4
|
-
Rails と
|
4
|
+
Rails と CircleCI で RspecやRubocop を実行したい。
|
5
5
|
しかし下記エラーが発生します。
|
6
6
|
対処方法ご存じの方見えましたらご教授頂きたく思います。
|
7
7
|
|