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
Github、BehatやContinuous Integrationを含めてPull Req...
Search
Scott
September 16, 2017
Technology
1
3.3k
Github、BehatやContinuous Integrationを含めてPull RequestのWordPressの開発ワークフロー
2107 WordCamp 東京
Scott
September 16, 2017
Tweet
Share
More Decks by Scott
See All by Scott
コンテナ基盤のビジネスを作るに際して
sukottokun
0
45
About Support and DevRel (Making Support a Blast)
sukottokun
0
100
ドルーパルExpo
sukottokun
0
140
Other Decks in Technology
See All in Technology
どちらを使う?GitHub or Azure DevOps Ver. 24H2
kkamegawa
0
900
バクラクのドキュメント解析技術と実データにおける課題 / layerx-ccc-winter-2024
shimacos
2
1.1k
LINEヤフーのフロントエンド組織・体制の紹介【24年12月】
lycorp_recruit_jp
0
530
APIとはなにか
mikanichinose
0
100
10分で学ぶKubernetesコンテナセキュリティ/10min-k8s-container-sec
mochizuki875
3
360
ゼロから創る横断SREチーム 挑戦と進化の軌跡
rvirus0817
2
270
KubeCon NA 2024 Recap / Running WebAssembly (Wasm) Workloads Side-by-Side with Container Workloads
z63d
1
250
社内イベント管理システムを1週間でAKSからACAに移行した話し
shingo_kawahara
0
190
Google Cloud で始める Cloud Run 〜AWSとの比較と実例デモで解説〜
risatube
PRO
0
110
生成AIをより賢く エンジニアのための RAG入門 - Oracle AI Jam Session #20
kutsushitaneko
4
260
サービスでLLMを採用したばっかりに振り回され続けたこの一年のあれやこれや
segavvy
2
500
AI時代のデータセンターネットワーク
lycorptech_jp
PRO
1
290
Featured
See All Featured
Site-Speed That Sticks
csswizardry
2
190
We Have a Design System, Now What?
morganepeng
51
7.3k
Building Applications with DynamoDB
mza
91
6.1k
Fontdeck: Realign not Redesign
paulrobertlloyd
82
5.3k
Building Adaptive Systems
keathley
38
2.3k
A Modern Web Designer's Workflow
chriscoyier
693
190k
Building Your Own Lightsaber
phodgson
103
6.1k
The Pragmatic Product Professional
lauravandoore
32
6.3k
Thoughts on Productivity
jonyablonski
67
4.4k
Six Lessons from altMBA
skipperchong
27
3.5k
Navigating Team Friction
lara
183
15k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.1k
Transcript
GITHUB, BEHAT, CIΛؚΊͯ ϫʔυϓϨεͷ։ൃϫʔΫϑϩʔ ॳ৺ऀͷPRϫʔΫϑϩʔͷཱྀ
ϚοηΠείοτ 15ؒɿσϕϩούʔɺDevOpsɺͳͲ ෭ࣾɺΧελϚʔαΫηε
PRϫʔΫϑϩʔͷཱྀ ./wp-cli
GIT VS FTP git ftp ίʔυΛม͑Δ ॴʑʹҠಈ มߋͷه มߋͷϩʔϧόοΫ τϦΨʔ
νʔϜͱ؆୯ͳγϯΫϩ ϒϥϯνͰมߋͰ͖Δ
GITΛ͋͏͜ͱ ˎˎʢ͍ํͷϦϯΫΛϓϨθϯʹఴ͏͢Δʣ εςοϓ̍ͷඪ
COMPOSER ຊ൪ ϩʔΧϧ
COMPOSER ‣ ϓϥάΠϯͷόʔδϣϯɺใཧ͕Ͱ͖Δ ‣ ϓϥάΠϯΠϯετʔϧɺΞοϓσʔτ͕Ͱ͖Δ
εςοϓ̎ͷඪ ˎˎʢ͍ํͷϦϯΫΛϓϨθϯʹఴ͏͢Δʣ ίϯϙʔβʔΛ͏͜ͱ
WP-CLI # ϓϥάΠϯΛ༗ޮԽ͢Δ $ wp plugin activate wp-cfm # ϙετΛআ͢Δ
$ wp post delete 123 # ϩʔϧΛදࣔ $ wp role list administrator ./wp-cli
εΫϦϓτ࡞ΕΔ #URLͷஔͱݕࡧ #!/bin/bash wp search-replace ‘http://live.example.com' ‘http://test.example.com' ./wp-cli
εςοϓ̏ͷඪ ˎˎʢ͍ํͷϦϯΫΛϓϨθϯʹఴ͏͢Δʣ WP-CLIΛ͏͜ͱ
WP-CFMϓϥάΠϯ ϓϥάΠϯɺςʔϚͷઃఆͳͲΛΤΫεϙʔτɺΠϯϙʔτ Ͱ͖·͢ $ wp config push plugin-settings-yoast gitͰDEV͔ΒLIVE·ͰҠಈͯ͠ $
wp config pull plugin-settings-yoast
εςοϓ̐ͷඪ ˎˎʢ͍ํͷϦϯΫΛϓϨθϯʹఴ͏͢Δʣ WP-CFMΛͬͯઃఆΛҠಈ͢Δ͜ͱ
ࣗಈͷςετ ‣ PHPͷϑΝϯΫγϣϯΫϥε͕ςετͰ͖Δͷ ‣ αΠτͷػೳ͕ςετͰ͖Δͷɻ
BDD W/BEHAT Behavior Driven Development (ސ٬ͷཁٻ༷ʹج͍ͮͨςετ)
Scenario: As a user with the editor role I can
publish blog posts Given I am logged in as "editor-qa" When I follow "Posts" And I follow "Add New" And I press "Text" And I fill in "post_title" with “͜Μʹͪʂ" And I press "Publish" Then I should see "Post published" BDDͷςετʢྫʣ
؆୯ͳςετΛ͍ॳΊΔ͜ͱ εςοϓ̑ͷඪ
ΠϯςάϨʔγϣ ϯ ͷαʔϏε ‣ తʂ ‣ σϞϯετϨʔγϣϯʂ
σϞϯετϨʔγϣϯ λΠϜ
͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ ‣ τϥΠ͍ͨ͠ํͪ͜Β ‣
[email protected]
‣ github/twitter: sukottokun
ϦϯΫ ➤ ൃදͨ͠ྫΛશମͰؾʹߏஙɿhttps://github.com/pantheon-systems/example-wordpress-composer ➤ GIT: ʢӳޠ͚ͩͲɺ͓͢͢Ίʣhttps://www.codeschool.com/courses/try-git ➤ GIT: http://rogerdudler.github.io/git-guide/index.ja.html ➤
ίϯϙʔβʔͱWP: http://qiita.com/atomita/items/37825ea00ef41ff6c884 ➤ WPϓϥάΠϯͷϨϙδτϦɿhttps://wpackagist.org/ ➤ ίϯϙʔβʔʢӳޠʣhttps://pantheon.io/docs/composer/ ➤ Behat: https://firegoby.jp/archives/6871 ➤ WPCFMʢӳޠʣ: https://wordpress.org/plugins/wp-cfm/ ➤ WPCFMʢӳޠʣ: https://pantheon.io/docs/wp-cfm/ ➤ σϞϯετϨʔγϣϯͷಈըɿhttps://youtu.be/PZbriZ0H0pk