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.2k
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
Commitment vs Harrisonism - Keynote for Scrum Niseko 2024
miholovesq
6
1.1k
コンテンツを支える 若手ゲームクリエイターの アートディレクションの事例紹介 / cagamefi-game
cyberagentdevelopers
PRO
1
130
とあるユーザー企業におけるリスクベースで考えるセキュリティ業務のお話し
4su_para
3
330
Product Engineer Night #6プロダクトエンジニアを育む仕組み・施策
hacomono
PRO
1
470
プロポーザルのつくり方 〜個人技編〜 / How to come up with proposals
ohbarye
1
110
君は隠しイベントを見つけれるか?
mujyun
0
300
Fargateを使った研修の話
takesection
0
120
プロダクトチームへのSystem Risk Records導入・運用事例の紹介/Introduction and Case Studies on Implementing and Operating System Risk Records for Product Teams
taddy_919
1
170
わたしとトラックポイント / TrackPoint tips
masahirokawahara
1
240
【若手エンジニア応援LT会】AWSで繋がり、共に成長! ~コミュニティ活動と新人教育への挑戦~
kazushi_ohata
0
180
신뢰할 수 있는 AI 검색 엔진을 만들기 위한 Liner의 여정
huffon
0
370
Vueで Webコンポーネントを作って Reactで使う / 20241030-cloudsign-vuefes_after_night
bengo4com
4
2.5k
Featured
See All Featured
Dealing with People You Can't Stand - Big Design 2015
cassininazir
364
22k
How to train your dragon (web standard)
notwaldorf
88
5.7k
Code Reviewing Like a Champion
maltzj
519
39k
Raft: Consensus for Rubyists
vanstee
136
6.6k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
43
6.6k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
3
370
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
92
16k
The Cult of Friendly URLs
andyhume
78
6k
Automating Front-end Workflow
addyosmani
1365
200k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
46
2.1k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
26
2.1k
What's new in Ruby 2.0
geeforr
342
31k
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