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
NilAway による静的解析で「10 億ドル」を節約する #kyotogo / Kyoto Go 56th
ytaka23
3
380
株式会社ログラス − エンジニア向け会社説明資料 / Loglass Comapany Deck for Engineer
loglass2019
3
32k
どちらを使う?GitHub or Azure DevOps Ver. 24H2
kkamegawa
0
720
2024年にチャレンジしたことを振り返るぞ
mitchan
0
130
ブラックフライデーで購入したPixel9で、Gemini Nanoを動かしてみた
marchin1989
1
520
GitHub Copilot のテクニック集/GitHub Copilot Techniques
rayuron
29
12k
私なりのAIのご紹介 [2024年版]
qt_luigi
1
120
宇宙ベンチャーにおける最近の情シス取り組みについて
axelmizu
0
110
TSKaigi 2024 の登壇から広がったコミュニティ活動について
tsukuha
0
160
OpenAIの蒸留機能(Model Distillation)を使用して運用中のLLMのコストを削減する取り組み
pharma_x_tech
4
550
.NET 9 のパフォーマンス改善
nenonaninu
0
850
非機能品質を作り込むための実践アーキテクチャ
knih
3
1.1k
Featured
See All Featured
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
169
50k
Why Our Code Smells
bkeepers
PRO
335
57k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
28
900
Code Review Best Practice
trishagee
65
17k
Embracing the Ebb and Flow
colly
84
4.5k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Designing for Performance
lara
604
68k
Testing 201, or: Great Expectations
jmmastey
40
7.1k
KATA
mclloyd
29
14k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
29
2k
GraphQLとの向き合い方2022年版
quramy
44
13k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
59k
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