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
410
Android Studio `Command+Shift+A`
yasuhiroki
0
330
シェルスクリプトをサーバーレスで cron したい
yasuhiroki
1
790
rails new コマンド
yasuhiroki
1
730
自動化を習慣化する
yasuhiroki
2
14k
GitHub Actions Parallel Testing
yasuhiroki
1
1.2k
ベンチャー企業がCircleCIを選んだ理由と活用方法
yasuhiroki
1
780
Rubyの正規表現を調べてみた
yasuhiroki
0
820
開発者(個人)のためのJenkins 運用編
yasuhiroki
0
2.2k
Other Decks in Programming
See All in Programming
『GO』アプリ バックエンドサーバのコスト削減
mot_techtalk
0
130
Spring gRPC について / About Spring gRPC
mackey0225
0
220
AWS Lambda functions with C# 用の Dev Container Template を作ってみた件
mappie_kochi
0
240
テストをしないQAエンジニアは何をしているか?
nealle
0
130
Lottieアニメーションをカスタマイズしてみた
tahia910
0
120
2024年のWebフロントエンドのふりかえりと2025年
sakito
1
230
Introduction to kotlinx.rpc
arawn
0
630
Honoとフロントエンドの 型安全性について
yodaka
4
250
チームリードになって変わったこと
isaka1022
0
190
なぜイベント駆動が必要なのか - CQRS/ESで解く複雑系システムの課題 -
j5ik2o
7
2.5k
自分ひとりから始められる生産性向上の取り組み #でぃーぷらすオオサカ
irof
8
2.6k
iOSエンジニアから始める visionOS アプリ開発
nao_randd
3
120
Featured
See All Featured
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
4
400
4 Signs Your Business is Dying
shpigford
182
22k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.3k
The Language of Interfaces
destraynor
156
24k
Gamification - CAS2011
davidbonilla
80
5.1k
Testing 201, or: Great Expectations
jmmastey
41
7.2k
Rails Girls Zürich Keynote
gr2m
94
13k
Practical Orchestrator
shlominoach
186
10k
How to Ace a Technical Interview
jacobian
276
23k
RailsConf 2023
tenderlove
29
1k
The World Runs on Bad Software
bkeepers
PRO
67
11k
Git: the NoSQL Database
bkeepers
PRO
427
64k
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 が欲しい 何か情報があれば教えて
ご清聴ありがとうございました