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
43
About Support and DevRel (Making Support a Blast)
sukottokun
0
100
ドルーパルExpo
sukottokun
0
140
Other Decks in Technology
See All in Technology
LINEヤフーにおけるPrerender技術の導入とその効果
narirou
1
110
B2B SaaSから見た最近のC#/.NETの進化
sansantech
PRO
0
910
SREが投資するAIOps ~ペアーズにおけるLLM for Developerへの取り組み~
takumiogawa
2
470
SSMRunbook作成の勘所_20241120
koichiotomo
3
160
アジャイルチームがらしさを発揮するための目標づくり / Making the goal and enabling the team
kakehashi
3
150
IBC 2024 動画技術関連レポート / IBC 2024 Report
cyberagentdevelopers
PRO
1
120
適材適所の技術選定 〜GraphQL・REST API・tRPC〜 / Optimal Technology Selection
kakehashi
1
710
OCI Security サービス 概要
oracle4engineer
PRO
0
6.5k
OTelCol_TailSampling_and_SpanMetrics
gumamon
1
220
飲食店データの分析事例とそれを支えるデータ基盤
kimujun
0
200
テストコード品質を高めるためにMutation Testingライブラリ・Strykerを実戦導入してみた話
ysknsid25
7
2.7k
アプリエンジニアのためのGraphQL入門.pdf
spycwolf
0
100
Featured
See All Featured
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
42
9.2k
It's Worth the Effort
3n
183
27k
Designing for Performance
lara
604
68k
Ruby is Unlike a Banana
tanoku
97
11k
Navigating Team Friction
lara
183
14k
How STYLIGHT went responsive
nonsquared
95
5.2k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
329
21k
Building a Scalable Design System with Sketch
lauravandoore
459
33k
The Pragmatic Product Professional
lauravandoore
31
6.3k
We Have a Design System, Now What?
morganepeng
50
7.2k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
6.9k
Intergalactic Javascript Robots from Outer Space
tanoku
269
27k
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