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
CIをもっと高速にした(かった) / ci-fast
Search
Jun Watanabe
February 22, 2017
Programming
0
1.5k
CIをもっと高速にした(かった) / ci-fast
presented on #phpblt #6
https://phpblt.connpass.com/event/49458/
Jun Watanabe
February 22, 2017
Tweet
Share
More Decks by Jun Watanabe
See All by Jun Watanabe
力技で実現するHR Driven Provisioningとアクセス制御の自動化 / kyash-hr-driven-provisioning
rela1470
0
110
10分(25分)でつくる社内Webツール / howto-oidc-webpage
rela1470
0
100
リーグオブ情シス 第二回 / League of Infosys
rela1470
1
1.3k
Kyashでコーポレートエンジニアを初採用して7ヶ月が経ちましたがお元気ですか / ce-night-kyash
rela1470
4
2.9k
じこしょうかい2019 / rela1470-portfolio-2019
rela1470
0
300
255オクテットのドメインはツラみがある! / endless-work
rela1470
1
4.9k
ヤフーの1on1
rela1470
0
440
15分でわかる!WBMPビューアー実装から始めるPHPバイナリ超初心者入門 / php_wbmp
rela1470
1
2.2k
またブラウザアプリの時代が来る!?ORATTAが考えるこれからのゲーム開発戦略とは / oratta_webapp_pwa
rela1470
0
1.7k
Other Decks in Programming
See All in Programming
2万ページのSSG運用における工夫と注意点 / Vue Fes Japan 2024
chinen
3
1.3k
Realtime API 入門
riofujimon
0
100
ピラミッド、アイスクリームコーン、SMURF: 自動テストの最適バランスを求めて / Pyramid Ice-Cream-Cone and SMURF
twada
PRO
9
990
とにかくAWS GameDay!AWSは世界の共通言語! / Anyway, AWS GameDay! AWS is the world's lingua franca!
seike460
PRO
1
540
GitHub Actionsのキャッシュと手を挙げることの大切さとそれに必要なこと
satoshi256kbyte
5
390
破壊せよ!データ破壊駆動で考えるドメインモデリング / data-destroy-driven
minodriven
16
4k
PagerDuty を軸にした On-Call 構築と運用課題の解決 / PagerDuty Japan Community Meetup 4
horimislime
1
110
Pinia Colada が実現するスマートな非同期処理
naokihaba
2
150
Golang と Erlang
taiyow
8
1.9k
Streams APIとTCPフロー制御 / Web Streams API and TCP flow control
tasshi
1
290
Generative AI Use Cases JP (略称:GenU)奮闘記
hideg
0
150
qmuntal/stateless のススメ
sgash708
0
120
Featured
See All Featured
Statistics for Hackers
jakevdp
796
220k
A better future with KSS
kneath
238
17k
How STYLIGHT went responsive
nonsquared
95
5.2k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
92
16k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
6.9k
Put a Button on it: Removing Barriers to Going Fast.
kastner
59
3.5k
BBQ
matthewcrist
85
9.3k
KATA
mclloyd
29
13k
We Have a Design System, Now What?
morganepeng
50
7.2k
Building Adaptive Systems
keathley
38
2.2k
Typedesign – Prime Four
hannesfritz
39
2.4k
Building Better People: How to give real-time feedback that sticks.
wjessup
363
19k
Transcript
CIΛͬͱߴʹͨ͠ (͔ͬͨ) 2017/02/22 PHP BLT #6 Jun Watanabe
Jun Watanabe • ORATTA, Inc. Chief Engineer • PHPer 8͘Β͍
• ࠷ۙϚωδϝϯτɾ։ൃڥվળͷൺॏଟΊ • Twitter: http://rela.red/ https://recruit.oratta.net/
CIճͯ͠·͔͢?
ܧଓతΠϯςάϨʔγϣϯ • ϓϩάϥϚʔͷΞϓϦέʔγϣϯ࡞࣌ͷ ࣭վળೲظͷॖͷͨΊͷश׳ • ϏϧυςετɺΠϯεϖΫγϣϯͳͲΛܧ ଓతʹ࣮ߦ͍ͯ͘͜͠ͱ
Codecov GitHub Flow scrutinizer pull request 2017/02/22 ࣌
Codecov GitHub Flow scrutinizer pull request 2017/02/22 ࣌ Ϣχοτςετ ΧόϨοδ
Ϣχοτςετ PHP5.6.17 PHPUnit
19ඵ PHPUnit͍ >time phpunit -c phpunit.xml Runtime: PHP 5.6.17 real
0m19.066s user 0m14.152s sys 0m1.670s
Ϣχοτςετ + ΧόϨοδϨϙʔτ PHP5.6.17 PHPUnit Xdebug
1427ඵ Xdebug͍ >time phpunit -c phpunit.xml —coverage-html=coverage Runtime: PHP 5.6.17
with Xdebug 2.3.3 real 14m27.768s user 14m2.158s sys 0m22.179s +148ඵ
PHP7ʹ͢Ε ྑ͍͡ΌΜ!
Ϣχοτςετ + ΧόϨοδϨϙʔτ PHP7.1.1 PHPUnit Xdebug
56ඵ PHP7͍ >time phpunit -c phpunit.xml --coverage-html=coverage Runtime: PHP 7.1.1
with Xdebug 2.5.0 real 0m56.049s user 0m47.812s sys 0m1.034s -1331ඵ
phpdbgʹ͢Ε ྑ͍͡ΌΜ!
5ඵ!! phpdbg͍ >time phpdbg -qrr phpunit -c phpunit.xml --coverage-html=coverage Runtime:
PHPDBG 7.1.1 real 0m05.875s user 0m04.711s sys 0m0.342s -51ඵ
phpdbg ͬͱ׆༻ͯ͠΄͍͠!
؆୯ʹରԠͰ͖·͢! • CircleCI • PHP7ͳΒσϑΥͰରԠ͍ͯ͠·͢! • homebrew-php • શόʔδϣϯɺΠϯετʔϧΦϓγϣϯ͕͋Γ·͢! •
ྫ)brew install php71 --with-phpdbg
ͱ͍͑ݱ࣮Ͳ͏ͳͷ͔ • PHP7ʹҠߦͰ͖ͳ͍ϓϩδΣΫτ͋Δ • phpdbgPHP5.4͔Β͑Δ • PHP5.5Ҏલ͜ͷੈ͔Β໓Μͩจ໌ • PHP5.6ͰϑϨϯζʹͳΔํ๏Λߟ͑Δ
CircleCIͷPHP5.6ڥͰ phpdbgΛແཧΓ ͑ΔΑ͏ʹ͠·ͨ͠
https://github.com/ rela1470/ circleci-phpdbg
phpdbgͰΧόϨοδ͕औΕΔͷ PHP7͔Βͩͬͨ >time phpdbg -qrr phpunit -c phpunit.xml —coverage-html=coverage Runtime:
PHPDBG 5.6.17 Error: No code coverage driver is available
Ϣχοτςετ͚ͩͰ ૣ͘ͳͬͯͳ͍͔ͳ͋ >time phpunit -c phpunit.xml Runtime: PHP 5.6.17 real
0m19.066s user 0m14.152s sys 0m1.670s
ٯʹ8ඵ͘ͳͬͨ... >time phpdbg -qrr phpunit -c phpunit.xml Runtime: PHPDBG 5.6.17
real 0m27.769s user 0m23.256s sys 0m1.244s +8ඵ
͍ΈͪΞφλ࣍ୈ • ͬͱେنͳςετڥͰͬͨΒߴԽ ͯ͠Δͷ͔? • phpdbgͩͱ௨Βͳ͍ςετ͕͋ΔͷͰɺҠߦ લνΣοΫͱ͔ʹ͏?
https://github.com/ rela1470/ circleci-phpdbg
forked from suzuki/its-travel-pack (PHPBLT #4 by @suzuki) https://github.com/ rela1470/ its-travel-pack