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.5k
circleci.vim
CircleCI UserCommunity Meetup Tokyo #6 LT
Yasuhiroki
August 23, 2019
Tweet
Share
More Decks by Yasuhiroki
See All by Yasuhiroki
自分に勉強させるには
yasuhiroki
1
380
Android Studio `Command+Shift+A`
yasuhiroki
0
300
シェルスクリプトをサーバーレスで cron したい
yasuhiroki
1
750
rails new コマンド
yasuhiroki
1
690
自動化を習慣化する
yasuhiroki
2
14k
GitHub Actions Parallel Testing
yasuhiroki
1
1.2k
ベンチャー企業がCircleCIを選んだ理由と活用方法
yasuhiroki
1
760
Rubyの正規表現を調べてみた
yasuhiroki
0
770
開発者(個人)のためのJenkins 運用編
yasuhiroki
0
2.1k
Other Decks in Programming
See All in Programming
画像でわかる北島直樹
naoki0917
0
140
Vue SFCのtemplateでTypeScriptの型を活用しよう
tsukkee
3
1.2k
CSC509 Lecture 06
javiergs
PRO
0
140
Nuxt UI Pro、NuxtHub、Nuxt Scripts、Nuxtエコシステムをふんだんに利用して開発するコーポレートサイト@Vue Fes Japan 2024
shingangan
3
690
Vue.js学習の振り返り
hiro_xre
1
100
自分だけの世界を創るクリエイティブコーディング / Creative Coding: Creating Your Own World
chobishiba
2
2.1k
Vitest Browser Mode への期待 / Vitest Browser Mode
odanado
PRO
1
1.4k
ECSのサービス間通信 4つの方法を比較する 〜Canary,Blue/Greenも添えて〜
tkikuc
9
1.7k
Amazon Neptuneで始めてみるグラフDB-OpenSearchによるグラフの全文検索-
satoshi256kbyte
3
150
【YAPC::Hakodate 2024】TypeScriptエンジニアが感じたPerlのここが面白い
kimitashoichi
1
490
tc39 x jsconf.jp Panel Discussion 2024
yosuke_furukawa
PRO
0
120
2万ページのSSG運用における工夫と注意点 / Vue Fes Japan 2024
chinen
3
1.1k
Featured
See All Featured
What's new in Ruby 2.0
geeforr
342
31k
Docker and Python
trallard
40
3k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
92
16k
GraphQLの誤解/rethinking-graphql
sonatard
66
9.9k
The Cult of Friendly URLs
andyhume
77
6k
Building Your Own Lightsaber
phodgson
102
6k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.2k
Optimizing for Happiness
mojombo
376
69k
Fireside Chat
paigeccino
32
3k
The Invisible Side of Design
smashingmag
297
50k
Building Adaptive Systems
keathley
38
2.2k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
48k
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 が欲しい 何か情報があれば教えて
ご清聴ありがとうございました