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.vim
Search
Yasuhiroki
August 23, 2019
Programming
0
1.6k
circleci.vim
CircleCI UserCommunity Meetup Tokyo #6 LT
Yasuhiroki
August 23, 2019
Tweet
Share
More Decks by Yasuhiroki
See All by Yasuhiroki
自分に勉強させるには
yasuhiroki
1
420
Android Studio `Command+Shift+A`
yasuhiroki
0
340
シェルスクリプトをサーバーレスで cron したい
yasuhiroki
1
810
rails new コマンド
yasuhiroki
1
750
自動化を習慣化する
yasuhiroki
2
15k
GitHub Actions Parallel Testing
yasuhiroki
1
1.2k
ベンチャー企業がCircleCIを選んだ理由と活用方法
yasuhiroki
1
790
Rubyの正規表現を調べてみた
yasuhiroki
0
840
開発者(個人)のためのJenkins 運用編
yasuhiroki
0
2.2k
Other Decks in Programming
See All in Programming
API for docs
soutaro
1
660
Chrome Extension Techniques from Hell
moznion
1
160
エンジニア未経験が最短で戦力になるためのTips
gokana
0
260
サービスレベルを管理してアジャイルを加速しよう!! / slm-accelerate-agility
tomoyakitaura
1
170
Coding Experience Cpp vs Csharp - meetup app osaka@9
harukasao
0
730
マルチアカウント環境での、そこまでがんばらない RI/SP 運用設計
wa6sn
0
710
地域ITコミュニティの活性化とAWSに移行してみた話
yuukis
0
230
PHPで書いたAPIをGoに書き換えてみた 〜パフォーマンス改善の可能性を探る実験レポート〜
koguuum
0
140
Bedrock×MCPで社内ブログ執筆文化を育てたい!
har1101
6
900
コンテナでLambdaをデプロイするときに知っておきたかったこと
_takahash
0
180
Defying Front-End Inertia: Inertia.js on Rails
skryukov
0
460
アプリを起動せずにアプリを開発して品質と生産性を上げる
ishkawa
0
2.6k
Featured
See All Featured
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
34
2.9k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.8k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
129
19k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
19
1.1k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
5
520
KATA
mclloyd
29
14k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
8
650
Writing Fast Ruby
sferik
628
61k
Designing for Performance
lara
607
69k
Code Reviewing Like a Champion
maltzj
522
39k
Transcript
circleci.vim CircleCI UserCommunity Meetup #6 A10 Lab Inc. yasuhiroki
⾃自⼰己紹介
Twitter
Vimmer
本題
Vimmer ですか?
config.yml 書いてますか?
circleci.vim
なぜ circleci.vim を作ったのか • config.yml をもっと効率よく書きたい • circleci config validate
の出⼒力力が分かりづらい • 既存のプラグイン (vim-circleci) では満⾜足でき ない (省略略)
どこが間違っているでしょう?
circleci config validate $ circleci config validate Error: Config does
not conform to schema: {:workflows {:ci {:jobs [{:shellcheck/check {:exclude disallowed-key}} nil nil nil nil nil nil nil]}}}
circleci config validate $ circleci config validate Error: Config does
not conform to schema: {:workflows {:ci {:jobs [{:shellcheck/check {:exclude disallowed-key}} nil nil nil nil nil nil nil]}}} わからん
正解
正解 ひと⽬目で気づきたい
circleci.vim で ϋΠϥΠτをつける
typoしたとき
正しいとき
正しいとき ⾊色で気づける
ハイライト • ドキュメントに載っているキーに⾊色付け • ハイライトは4種類類 • type (string とか approval
とか) • steps (checkout とか save_cache とか ) • << >> と {{ }} <- こだわりポイント • その他 (version とか commands とか)
<< >> と {{ }} • シェルのリダイレクトとの⾒見見間違いを防⽌止
補完機能 (オムニ補完)
TODO: snippets • jobs とか filter とかのテンプレートがあると 便便利利そう
使ってみてください
https://github.com/ yasuhiroki/circleci.vim
ご清聴ありがとうございました
これでいいのか?
本当に求めていたもの
間違った記述をしている ⾏行行を教えてくれる Linter が欲しい
本当に求めていたもの ※ 適当な合成です
circleci config validate を ハックすれば何とかなる?
circleci config validate の中身
GraphQLでリクエストしている
GraphQL の詳細仕様は... https://discuss.circleci.com/t/any-documentation-on-the-graphql-api/29913/2
レスポンスの中身を⾒見見てみる
レスポンスの中身を⾒見見てみる ⾏行行数の情報はなさそう
間違った記述をしている ⾏行行を教えてくれる Linter が欲しい
間違った記述をしている ⾏行行を教えてくれる Linter が欲しい 何か情報があれば教えて
ご清聴ありがとうございました