Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

osakapy 2014.10 LT (CI for Python Project)

678 views

Published on

大阪Pythonユーザの集まり 2014/10
LT
CI for Python Project

Published in: Technology
  • Be the first to comment

osakapy 2014.10 LT (CI for Python Project)

  1. 1. CI for Python Project osakapy 2014.10.21 LT / Hideo Hattori
  2. 2. whoami Hideo Hattori (github, twitter) KLab Inc. Python/Zsh/Go/C My Python Projects kuroko, otamapy, autopep8, pgmagick, genzshcomp ...
  3. 3. àVøe—_t CI Travis CI + GitHub drone.io + Bitbucket Jenkins + Private Project
  4. 4. CI
  5. 5. CIt{ ÒêȐŸÇ|£ò¸Ù®¶æòvuž.0w öícrP[_t (Wikipedia”–)
  6. 6. PythonÖì·¦®ÇszCI Å¸Ç ²–È£ò¸Ù®¶æò
  7. 7. Å¸Ç unitest, unittest2, mock nose, pytest tox coverage python setup.py build Xó—_tž;Ëe—l] sŽµ
  8. 8. ²–È£ò¸Ù®¶æò pyflakes, pep8 pylint Clone Digger
  9. 9. GitHub + Travis CI
  10. 10. Travis CI 2˜Ï˜ Push / Pull-Req Notification
  11. 11. Travis CI language: python python: - 2.6 script: - python test/test_autopep8.py éÜ·ÇéwÔ £êsN— .travis.yml žŸ ó—zŽ .travis.yml s ȬäàòÇ
  12. 12. Travis CIžoköº .travis.yml for autopep8 .travis.yml for otamapy nosetest or àówŸÇöítW COVERALLS ×% C«ÌŽ«Pvè£ÕèéžÌ¼w£ò¸Ç–êsY — HÖß,wvŸsŽsY—
  13. 13. Bitbucket + drone.io
  14. 14. drone.io 2˜Ï˜ Push / (Pull-Req Support?) Notification (à–êz‹) GitHubtŽ×%sY—” z¬zPythonϖ·æòt²ÝòÈöíz‹ž´Ü –Ç(toxžžT|R×Ö) ȬäàòÇ
  15. 15. drone.iožoköº toxžžJ pip install --upgrade tox Python2.7tPython3.3sÅ¸Ç tox -e py27 -e py33 Python3.4{´Ü–ÇcrPvP (2014.10ÔF)
  16. 16. Jenkins + Private Project
  17. 17. Jenkins ©–Öò¼–¸zCI´–Ï Push / Pull-Req / Cron-like ... ß sÚ¸ÇcvPt¿à Ö诣òiØ zSÔ[
  18. 18. Jenkinsžoköº Jenkins for genzshcomp Öì·¦®Ç|W• pyflakes  pep8 žžok² –È£ò¸Ù®¶æòžö² iz Å¸Ç„PrªÏ뷞N^rP[ ó—ŽSÔ Chatworkt×%ck–
  19. 19. iz)
  20. 20. iz) Buildbot circleci (ȬäàòÇ)
  21. 21. Št
  22. 22. Št Travis CI t Jenkins XSÔs”P GitHubsÚ¸Çe—v•Travis CIŠ
  23. 23. N–XtR`bPŠck

×