【Circle CI】ビルドでのエラー
解決したいこと
Circle CIでビルドをしたい。
・前回も失敗してこの記事で質問した。
https://qiita.com/hetare/questions/bd6374e5e03bb76b12d3
・その後色々試行錯誤したがうまくいかず、この記事にならってもう一度 .circleci/config.yml を作成
https://www.tweeeety.blog/entry/2018/02/09/195345
・Circle CIでビルドし、下記のエラーが出ている状態。前回のとは違うエラー内容
Circle CI
#!/bin/bash -eo pipefail
if test -f "Gemfile.lock"; then
APP_BUNDLER_VERSION=$(cat Gemfile.lock | tail -1 | tr -d " ")
if [ -z "$APP_BUNDLER_VERSION" ]; then
echo "Could not find bundler version from Gemfile.lock. Please use bundler-version parameter"
else
echo "Gemfile.lock is bundled with bundler version $APP_BUNDLER_VERSION"
fi
fi
if ! [ -z ]; then
echo "Found bundler-version parameter to override"
APP_BUNDLER_VERSION=
fi
if ! echo $(bundle version) | grep -q $APP_BUNDLER_VERSION; then
echo "Installing bundler $APP_BUNDLER_VERSION"
gem install bundler:$APP_BUNDLER_VERSION
else
echo "bundler $APP_BUNDLER_VERSION is already installed."
fi
if "./vendor/bundle" == "./vendor/bundle"; then
bundle check --path ./vendor/bundle || bundle install --deployment
else
bundle check --path ./vendor/bundle || bundle install --path=./vendor/bundle
fi
Gemfile.lock is bundled with bundler version 2.2.15
Traceback (most recent call last):
2: from /usr/local/bin/bundle:23:in `<main>'
1: from /usr/local/lib/ruby/2.6.0/rubygems.rb:302:in `activate_bin_path'
/usr/local/lib/ruby/2.6.0/rubygems.rb:283:in `find_spec_for_exe': Could not find 'bundler' (2.2.15) required by `$BUNDLER_VERSION`. (Gem::GemNotFoundException)
To update to the latest version installed on your system, run `bundle update --bundler`.
To install the missing version, run `gem install bundler:2.2.15`
Installing bundler 2.2.15
Fetching bundler-2.2.15.gem
Successfully installed bundler-2.2.15
1 gem installed
/bin/bash: line 21: ./vendor/bundle: Is a directory
[DEPRECATED] The `--path` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local path './vendor/bundle'`, and stop using this flag
The following gems are missing
* nokogiri (1.10.10)
* nio4r (2.5.2)
* websocket-driver (0.7.3)
* bcrypt (3.1.16)
* bindex (0.8.1)
* msgpack (1.3.3)
* bootsnap (1.4.8)
* ffi (1.13.1)
* sassc (2.4.0)
* byebug (11.1.3)
* unf_ext (0.0.7.7)
* jaro_winkler (1.5.4)
* json (2.5.1)
* mysql2 (0.5.3)
* puma (3.12.6)
* refile (0.6.2)
Install missing gems with `bundle install`
[DEPRECATED] The `--path` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local path './vendor/bundle'`, and stop using this flag
Ignoring bcrypt-3.1.16 because its extensions are not built. Try: gem pristine bcrypt --version 3.1.16
Ignoring bindex-0.8.1 because its extensions are not built. Try: gem pristine bindex --version 0.8.1
Ignoring bootsnap-1.4.8 because its extensions are not built. Try: gem pristine bootsnap --version 1.4.8
Ignoring byebug-11.1.3 because its extensions are not built. Try: gem pristine byebug --version 11.1.3
Ignoring ffi-1.13.1 because its extensions are not built. Try: gem pristine ffi --version 1.13.1
Ignoring jaro_winkler-1.5.4 because its extensions are not built. Try: gem pristine jaro_winkler --version 1.5.4
Ignoring json-2.5.1 because its extensions are not built. Try: gem pristine json --version 2.5.1
Ignoring msgpack-1.3.3 because its extensions are not built. Try: gem pristine msgpack --version 1.3.3
Ignoring nio4r-2.5.2 because its extensions are not built. Try: gem pristine nio4r --version 2.5.2
Ignoring nokogiri-1.10.10 because its extensions are not built. Try: gem pristine nokogiri --version 1.10.10
Ignoring puma-3.12.6 because its extensions are not built. Try: gem pristine puma --version 3.12.6
Ignoring sassc-2.4.0 because its extensions are not built. Try: gem pristine sassc --version 2.4.0
Ignoring sqlite3-1.3.13 because its extensions are not built. Try: gem pristine sqlite3 --version 1.3.13
Ignoring unf_ext-0.0.7.7 because its extensions are not built. Try: gem pristine unf_ext --version 0.0.7.7
Ignoring websocket-driver-0.7.3 because its extensions are not built. Try: gem pristine websocket-driver --version 0.7.3
Fetching gem metadata from https://rubygems.org/.........
Your bundle is locked to refile (0.6.2), but that version could not be found in
any of the sources listed in your Gemfile. If you haven't changed sources, that
means the author of refile (0.6.2) has removed it. You'll need to update your
bundle to a version other than refile (0.6.2) that hasn't been removed in order
to install.
Exited with code exit status 7
CircleCI received exit code 7
または、問題・エラーが起きている画像をここにドラッグアンドドロップ
該当するソースコード
自分で試したこと
参考記事を探しているのですが今の所これだという記事を見つけられていません。
0