CircleCI Orbs를 사용하여 chrome/chromedriver 설치
2394 단어 CircleCIChromechromedriver
나가 맡고 있는 프로젝트는, 2.0 이전부터 있는 것이므로
orbs
(을)를 사용하기 위해서는 한마디 필요했습니다.그렇다고 하더라도 Advanced Settings > Enable pipelines 를 ON 하면 됩니다


그래서, 이렇게

.circleci/config.yml
-version: 2
+version: 2.1
+orbs:
+ circleci-images: circleci/[email protected]
defaults: &defaults
parallelism: 2
working_directory: ~/my_project
docker:
- - image: circleci/ruby:2.5.0-node-browsers
+ - image: circleci/ruby:2.5.0-node
<<: *defaults
steps:
- checkout
+ # これをしないとchromedriverインストール時に依存関係を解決できなかった
+ - run: sudo apt-get update
+ # chrome, chromedriverをorbsコマンドでインストール
+ - circleci-images/install-chrome
+ - circleci-images/install-chromedriver
간단! !

그 밖에도 slack이나 heroku의 orb도 있는 것 같습니다. 편리하네요!
이상

참고
Reference
이 문제에 관하여(CircleCI Orbs를 사용하여 chrome/chromedriver 설치), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/paranishian/items/d1abb7b11a48a6740299텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)