Skip to content
This repository has been archived by the owner on Apr 3, 2021. It is now read-only.

Circleci 2.0 #48

Merged
merged 10 commits into from Apr 13, 2017
Merged

Circleci 2.0 #48

merged 10 commits into from Apr 13, 2017

Conversation

masutaka
Copy link
Owner

@masutaka masutaka commented Apr 12, 2017

この辺参考にした。

あとはローカルで $ circleci build を試行錯誤しながら。

ローカルでは $ bundle install とか遅かったけど、CircleCI 上だとめっちゃ速い・・・!
https://circleci.com/gh/masutaka/github-organization-watcher/155

キャッシュするまでもなく速いけど、bundle install とか無駄なので、ちょっと検討しよう。クラウドワークスさん、キャッシュまでやってた。

@masutaka
Copy link
Owner Author

ローカルで実行できる circleci コマンドcircleci/picard を docker run するだけのシェルスクリプトだが、実に不思議。

起動したコンテナは circle.yml で指定した複数の image がマージされている。本当に不思議。

今回は ruby:2.4.0-alpinepostgres:9.5-alpine を circle.yml に書いているが、ruby がインストールされて、PostgreSQL も起動したコンテナ上でテストが実行される。

* error parsing config: yaml: unmarshal errors:
  line 27: cannot unmarshal !!map into string
* job 'build' is not found
@masutaka masutaka force-pushed the circleci-2.0 branch 2 times, most recently from 26f6a4a to 504d418 Compare April 13, 2017 12:47
@masutaka
Copy link
Owner Author

/usr/local/bundle のキャッシュを使った場合、1:30 ~ 2:00 かかっていた CI が 40 秒程度に短縮された!

@masutaka masutaka changed the title [WIP] Circleci 2.0 Circleci 2.0 Apr 13, 2017
@masutaka masutaka merged commit 04adfe1 into master Apr 13, 2017
@masutaka masutaka deleted the circleci-2.0 branch April 13, 2017 12:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant