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
SSMRunbook作成の勘所_20241120
koichiotomo
2
130
インフラとバックエンドとフロントエンドをくまなく調べて遅いアプリを早くした件
tubone24
1
430
オープンソースAIとは何か? --「オープンソースAIの定義 v1.0」詳細解説
shujisado
7
820
dev 補講: プロダクトセキュリティ / Product security overview
wa6sn
1
2.3k
マルチプロダクトな開発組織で 「開発生産性」に向き合うために試みたこと / Improving Multi-Product Dev Productivity
sugamasao
1
300
障害対応指揮の意思決定と情報共有における価値観 / Waroom Meetup #2
arthur1
5
470
The Role of Developer Relations in AI Product Success.
giftojabu1
0
120
[CV勉強会@関東 ECCV2024 読み会] オンラインマッピング x トラッキング MapTracker: Tracking with Strided Memory Fusion for Consistent Vector HD Mapping (Chen+, ECCV24)
abemii
0
220
第1回 国土交通省 データコンペ参加者向け勉強会③- Snowflake x estie編 -
estie
0
130
SREが投資するAIOps ~ペアーズにおけるLLM for Developerへの取り組み~
takumiogawa
1
190
CysharpのOSS群から見るModern C#の現在地
neuecc
2
3.2k
Amplify Gen2 Deep Dive / バックエンドの型をいかにしてフロントエンドへ伝えるか #TSKaigi #TSKaigiKansai #AWSAmplifyJP
tacck
PRO
0
380
Featured
See All Featured
Embracing the Ebb and Flow
colly
84
4.5k
The World Runs on Bad Software
bkeepers
PRO
65
11k
Art, The Web, and Tiny UX
lynnandtonic
297
20k
Fashionably flexible responsive web design (full day workshop)
malarkey
405
65k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
506
140k
For a Future-Friendly Web
brad_frost
175
9.4k
How to train your dragon (web standard)
notwaldorf
88
5.7k
Unsuck your backbone
ammeep
668
57k
Producing Creativity
orderedlist
PRO
341
39k
The Power of CSS Pseudo Elements
geoffreycrofte
73
5.3k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
169
50k
Product Roadmaps are Hard
iamctodd
PRO
49
11k
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