Slide 1

Slide 1 text

GITHUB, BEHAT, CIΛؚΊͯ ϫʔυϓϨεͷ։ൃϫʔΫϑϩʔ ॳ৺ऀͷPRϫʔΫϑϩʔ΁ͷཱྀ

Slide 2

Slide 2 text

ϚοηΠείοτ 15೥ؒɿσϕϩούʔɺDevOpsɺͳͲ ෭ࣾ௕ɺΧελϚʔαΫηε

Slide 3

Slide 3 text

PRϫʔΫϑϩʔ΁ͷཱྀ ./wp-cli

Slide 4

Slide 4 text

GIT VS FTP git ftp ίʔυΛม͑Δ ॴʑʹҠಈ มߋͷه࿥ มߋͷϩʔϧόοΫ τϦΨʔ νʔϜͱ؆୯ͳγϯΫϩ ϒϥϯνͰมߋͰ͖Δ

Slide 5

Slide 5 text

GITΛ࢖͋͏͜ͱ ˎˎʢ࢖͍ํͷϦϯΫΛϓϨθϯʹఴ෇͏͢Δʣ εςοϓ̍ͷ໨ඪ

Slide 6

Slide 6 text

COMPOSER ຊ൪ ϩʔΧϧ

Slide 7

Slide 7 text

COMPOSER ‣ ϓϥάΠϯͷόʔδϣϯɺ৘ใ͸؅ཧ͕Ͱ͖Δ ‣ ϓϥάΠϯ͸ΠϯετʔϧɺΞοϓσʔτ͕Ͱ͖Δ

Slide 8

Slide 8 text

εςοϓ̎ͷ໨ඪ ˎˎʢ࢖͍ํͷϦϯΫΛϓϨθϯʹఴ෇͏͢Δʣ ίϯϙʔβʔΛ࢖͏͜ͱ

Slide 9

Slide 9 text

WP-CLI # ϓϥάΠϯΛ༗ޮԽ͢Δ
 $ wp plugin activate wp-cfm # ϙετΛ࡟আ͢Δ
 $ wp post delete 123 # ϩʔϧΛදࣔ
 $ wp role list
 administrator ./wp-cli

Slide 10

Slide 10 text

εΫϦϓτ΋࡞ΕΔ #URLͷஔ׵ͱݕࡧ
 #!/bin/bash 
 wp search-replace ‘http://live.example.com' ‘http://test.example.com' ./wp-cli

Slide 11

Slide 11 text

εςοϓ̏ͷ໨ඪ ˎˎʢ࢖͍ํͷϦϯΫΛϓϨθϯʹఴ෇͏͢Δʣ WP-CLIΛ࢖͏͜ͱ

Slide 12

Slide 12 text

WP-CFMϓϥάΠϯ ϓϥάΠϯɺςʔϚͷઃఆͳͲΛΤΫεϙʔτɺΠϯϙʔτ Ͱ͖·͢ $ wp config push plugin-settings-yoast gitͰDEV͔ΒLIVE·ͰҠಈͯ͠
 $ wp config pull plugin-settings-yoast

Slide 13

Slide 13 text

εςοϓ̐ͷ໨ඪ ˎˎʢ࢖͍ํͷϦϯΫΛϓϨθϯʹఴ෇͏͢Δʣ WP-CFMΛ࢖ͬͯઃఆΛҠಈ͢Δ͜ͱ

Slide 14

Slide 14 text

ࣗಈͷςετ ‣ PHPͷϑΝϯΫγϣϯ΍Ϋϥε͕ςετͰ͖Δ΋ͷ ‣ αΠτͷػೳ͕ςετͰ͖Δ΋ͷɻ

Slide 15

Slide 15 text

BDD W/BEHAT Behavior Driven Development (ސ٬ͷཁٻ࢓༷ʹج͍ͮͨςετ)

Slide 16

Slide 16 text

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ͷςετʢྫʣ

Slide 17

Slide 17 text

؆୯ͳςετΛ࢖͍ॳΊΔ͜ͱ εςοϓ̑ͷ໨ඪ

Slide 18

Slide 18 text

ΠϯςάϨʔγϣ ϯ ͷαʔϏε ‣ ໨త஍ʂ ‣ σϞϯετϨʔγϣϯʂ

Slide 19

Slide 19 text

σϞϯετϨʔγϣϯ λΠϜ

Slide 20

Slide 20 text

͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ ‣ τϥΠ͍ͨ͠ํ͸ͪ͜Β ‣ [email protected] ‣ github/twitter: sukottokun

Slide 21

Slide 21 text

ϦϯΫ ➤ ൃදͨ͠ྫΛશମͰؾʹߏஙɿ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