Slide 1

Slide 1 text

3PCPΛ࢖ͬͨ ϞμϯͳλεΫ؅ཧ php conference 2017 by @sizuhiko

Slide 2

Slide 2 text

,FOJDIJSP,JTIJEB 5PLZP +"1"/ TJ[VIJLP!HNBJMDPN !TJ[VIJLP IUUQTHJUIVCDPNTJ[VIJLP IUUQCMPHPQFOUPLZPKQ 2QN[OGTEQGFQ 

Slide 3

Slide 3 text

ࣗಈԽͯ͠·͔͢ʁ

Slide 4

Slide 4 text

%FW0QT IUUQTKBXJLJQFEJBPSHXJLJ%FW0QTΑΓҾ༻

Slide 5

Slide 5 text

wૣ͘ࢢ৔ʹग़͢ wϑΟʔυόοΫΛಘΔ w҆ఆͨ͠඼࣭ wڞ௨ͷձ࿩

Slide 6

Slide 6 text

ࣗಈԽ͸ ໨తͰͳ͘ खஈͰ͋Δ

Slide 7

Slide 7 text

} else { // 失敗パターンの処理 this.log.error(“エラーメッセージ”); this.response.status = 500; throw new ServerError(); } this.log.info(“何かのログ”); @@ -8,6 +8,7 @@ php:

Slide 8

Slide 8 text

if (results) { // 成功パターンの処理 return this; } else { // 失敗パターンの処理 this.log.error(“エラーメッセージ”); this.response.status = 500; throw new ServerError(); } this.log.info(“何かのログ”);

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

wίʔυϨϏϡʔ w੩తղੳ wࣗಈςετ wࣗಈσϓϩΠ

Slide 11

Slide 11 text

+FOLJOT

Slide 12

Slide 12 text

pipeline { agent any stages { stage('Install') { steps { sh 'npm install' } } stage('JsHint') { steps { sh 'npm run lint:ci' } } stage('Test') { steps { sh 'npm run test:ci' } } } post { always { step([$class: 'CheckStylePublisher', pattern: 'jshint-results.xml', unstableTotalAll: '0', usePreviousBuildAsReference: true]) junit allowEmptyResults: true, testResults: 'test-results/*.xml' } } }

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

Slide 15

Slide 15 text

w(/6.BLF 3BLFͳͲؚΉ  wNBWFOBOU wHSBEMF wHSVOU wHVMQ

Slide 16

Slide 16 text

443 41"

Slide 17

Slide 17 text

443 41"

Slide 18

Slide 18 text

$PNQPTFS

Slide 19

Slide 19 text

{ "scripts": { "test": [ "@composer install", "@clear",
 "phpunit" ],
 "clear": "rm -rf test-results/*” } }

Slide 20

Slide 20 text

http://robo.li/

Slide 21

Slide 21 text

• automate your common tasks • start workers • run parallel tasks • execute commands • run tests • watch filesystem changes

Slide 22

Slide 22 text

%FNP https://github.com/sizuhiko/ phpkansai-2017-demo

Slide 23

Slide 23 text

1)1 /PEF+4 ґଘؔ܎ͷղܾ $PNQPTFS /1. λεΫϥϯφʔ 3PCP (VMQ

Slide 24

Slide 24 text

ssh rsync phpunit

Slide 25

Slide 25 text

WJTJUNZCMPHHJUIVC https://github.com/sizuhiko http://blog.open.tokyo.jp