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
740
rails new コマンド
yasuhiroki
1
670
自動化を習慣化する
yasuhiroki
2
14k
GitHub Actions Parallel Testing
yasuhiroki
1
1.1k
ベンチャー企業がCircleCIを選んだ理由と活用方法
yasuhiroki
1
740
Rubyの正規表現を調べてみた
yasuhiroki
0
750
開発者(個人)のためのJenkins 運用編
yasuhiroki
0
2.1k
Other Decks in Programming
See All in Programming
実践!難読化ガイド
mitchan
0
230
From Idea to IDE: Developing Plugins for Android Studio
thisaay
1
230
Pythonで改めて考える「クラス(class)」の使いどころ
os1ma
4
900
エラーレスポンス設計から考える、0→1開発におけるGraphQLへの向き合い方
bicstone
5
1.5k
LangChainの現在とv0.3にむけて
os1ma
4
940
XStateでReactに秩序を与えたい
gizm000
0
730
Hermes: Better Performance with Bytecode Translation (React Universe 2024)
tmikov2023
0
100
React + TextAliveでカッコいいLyric Applicatioinを作ろう!!
tosuri13
0
400
全部見せます! クラシルリワードのSwiftTesting移行プロジェクト
uetyo
0
210
Why Prism?
kddnewton
4
1.7k
Android開発以外のAndroid開発経験の活かしどころ
konifar
2
1k
状態管理ライブラリZustandの導入から運用まで
k1tikurisu
3
470
Featured
See All Featured
The Straight Up "How To Draw Better" Workshop
denniskardys
230
130k
VelocityConf: Rendering Performance Case Studies
addyosmani
322
23k
What the flash - Photography Introduction
edds
67
11k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
36
1.7k
The Mythical Team-Month
searls
218
43k
The Language of Interfaces
destraynor
153
23k
Product Roadmaps are Hard
iamctodd
PRO
48
10k
Designing for humans not robots
tammielis
248
25k
Navigating Team Friction
lara
183
13k
The Pragmatic Product Professional
lauravandoore
31
6.2k
Code Review Best Practice
trishagee
62
16k
Large-scale JavaScript Application Architecture
addyosmani
508
110k
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 が欲しい 何か情報があれば教えて
ご清聴ありがとうございました