Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
CircleCI Hands-on for Beginners
Search
wtnabe
May 21, 2016
Programming
0
390
CircleCI Hands-on for Beginners
GitHubのサンプルリポジトリをCircleCIのプロジェクトとして追加し、Buildを動かしてみるまで。Kanazawa.rb meetup #45
wtnabe
May 21, 2016
Tweet
Share
More Decks by wtnabe
See All by wtnabe
Decoupled System with Turbo Frame
wtnabe
1
50
join-kanazawarb-or-7years-passed-since-it-was-borned
wtnabe
0
680
let-me-edit-with-editor
wtnabe
0
250
google-photos-and-storage-and-rclone
wtnabe
0
330
one case of how to begin vuejs
wtnabe
2
380
Kanazawa.rb meetup #56 Coderetreat Intro
wtnabe
0
360
lightweight authenticity of microservices
wtnabe
0
380
Automate WordPress deployment with WordMove
wtnabe
1
420
Introducing Todays CI Services
wtnabe
0
290
Other Decks in Programming
See All in Programming
Prompt FlowによるLLMアプリケーション開発
yuto2000
1
1k
初心者がおさえておきたいAWS CDKのベストプラクティス 2024
konokenj
15
7.3k
日付と正規化
megmogmog1965
0
140
GraphQL はいいぞ! ~Laravel で学ぶ GraphQL 入門~
azuki
1
160
CSC307 Lecture 10
javiergs
PRO
0
310
유연한 Composable 설계
l2hyunwoo
0
380
Exploring the Gradually Lost Technical Skills in the Cloud Native Era
hwchiu
2
3.9k
「2024年版 Kotlin サーバーサイドプログラミング実践開発」の補講 〜O/Rマッパー編〜
n_takehata
2
260
さきがけから振り返るアーキテクチャ刷新 / Reflecting on the Architectural Renewal from the Vanguard
nrslib
2
780
CSC307 Lecture 07
javiergs
PRO
0
220
Temporalを取り巻く仕様を整理する
sajikix
0
110
Google's Recipe for Scaling (Web) Security – LocoMocoSec 2024
lweichselbaum
0
170
Featured
See All Featured
Designing for humans not robots
tammielis
247
25k
Intergalactic Javascript Robots from Outer Space
tanoku
266
26k
Faster Mobile Websites
deanohume
303
30k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
17
8.7k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
245
1.2M
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
12
3.8k
The Cult of Friendly URLs
andyhume
75
5.9k
Principles of Awesome APIs and How to Build Them.
keavy
124
16k
Ruby is Unlike a Banana
tanoku
96
10k
Visualization
eitanlees
139
14k
Fashionably flexible responsive web design (full day workshop)
malarkey
399
65k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
277
13k
Transcript
CircleCI 101 @wtnabe Kanazawa.rb meetup #45 2016-05-21 (Sat) at DMM.com
Labo Kanazawa Minami-chou
お品書き 今⽇のゴール CircleCI紹介 やってみた 今後の課題
今⽇のゴール
1. GitHubのサンプルrepoをfork 2. CircleCIと紐付け 3. GitHubのコードを変更してbuild結果を確認
CircleCI紹介
https://circleci.com/ 2016-04-30 現在 2011年誕⽣ 今のところGitHubのみ対応 Linux x 1 parallelなら無料 private
reposも無料で対応 2つめから $50 / para
プロジェクトのアクセス権限はすべてリ ポジトリと紐づいているので管理が楽
やってみた
1. GitHubのrepoをfork 2. GitHubアカウントでCircleCIにLog In 3. GitHub reposをADD PROJECTS 4.
コードを変えて結果を⾒る
サンプルrepo https://github.com/wtnabe/todomvc- vanillajs
CircleCI https://circleci.com/
Sign Up or Sign In CircleCIアカウントを持って いない場合は右のフローに従 ってSign Up 持ってる場合はLog
In With GitHub
None
もうBuildが⾛ります そういう設定がrepoの中にあるから
コードを変更してみよう
今回のBuildの秘密
package.jsonがあった場合 Node.jsプロジェクトと判断 とりあえずnpm testを実⾏する 他の⾔語でも似たような感じ
ちなみに GitHub API経由でsshのread onlyなdeploy keyがrepoにセットされています
今後の課題 今⽇やらなかったこと
1. Buildを実⾏する準備ができる circle.yml, Env Vars, SSH Key, etc. 2. 適切な通知設定
3. テストコードを書けるようになる 4. Deploy
まとめ
GitHubを使っているならCircleCIで簡単 にCIを始められる CIは静的解析だけでも便利 Webフロントエンドでも便利
楽してうっかりをなくそう
Enjoy !