TravisCI_for_Gopher

 TravisCI_for_Gopher

Travis CI Meetup in 福岡のLT資料です
http://kiban.doorkeeper.jp/events/15134

Cd3d2cb2dadf5488935fe0ddaea7938a?s=128

monochromegane

September 25, 2014
Tweet

Transcript

  1. Travis CI for Gopher Travis CI Meetup in ෱Ԭ @monochromegane

  2. MIYAKE Yusuke (@monochromegane)

  3. GMO Pepabo, Inc.

  4. pt The Platinum Searcher

  5. ෺ൢ͸͡Ί·ͨ͠

  6. Building a Go Project

  7. GoϓϩμΫτͷ೰Έ

  8. ؀ڥ͕ҧ͏ͷ͕౰ͨΓલ

  9. • Goͷversion͕ҧ͏ • ։ൃ؀ڥͱϏϧυ؀ڥ͕ҧ͏ • ࣮ߦ؀ڥ͕ҧ͏

  10. Travis CI ʹ͓ئ͍͍ͯ͠·͢ ͦͷล͸

  11. • Goͷversion͕ҧ͏ • ։ൃ؀ڥͱϏϧυ؀ڥ͕ҧ͏ • ࣮ߦ؀ڥ͕ҧ͏

  12. Go Versions

  13. go: - 1.3 - 1.2.2 - 1.2.1 - 1.2 -

    release - tip • ෳ਺ͷGoόʔδϣϯΛର৅ʹ͢Δ • `release`λά͸ ࠷৽ͷϦϦʔεόʔδϣϯ (1.3.1) • `tip`λά͸࠷৽όʔδϣϯ(devel +35193bf04a5b Tue Sep 23 15:34:38 2014 +1000) ※2014/09/24࣌఺
  14. • Goͷversion͕ҧ͏ • ։ൃ؀ڥͱϏϧυ؀ڥ͕ҧ͏ • ࣮ߦ؀ڥ͕ҧ͏

  15. CGO

  16. env: CGO_ENABLED=0 • CGOΛແޮʹ͢Δ • Travis CI ͸σϑΥϧτͰCGO͕༗ޮ͕ͩɺ͋͑ͯCGOΛແ ޮʹͨ͠ঢ়ଶͰςετΛߦ͓ͬͯ͘ •

    ֤छCIαʔϏε͸CGO͕ແޮͳͷͰɺϏϧυ࣌ͷΤϥʔͳͲ Λࣄલʹݕ஌Ͱ͖Δ
  17. • Goͷversion͕ҧ͏ • ։ൃ؀ڥͱϏϧυ؀ڥ͕ҧ͏ • ࣮ߦ؀ڥ͕ҧ͏

  18. ΫϩείϯύΠϧͨ͠੒Ռ෺Λ ֤؀ڥͰCI͢Δํ๏͸ ·ཱͩ֬Ͱ͖ͯ·ͤΜ…

  19. Test

  20. script: - go test -v ./... • go get ͸ςετͷલʹউखʹ΍ͬͯ͘ΕΔ

    • -v ͚͓ͭͯ͘ͱৄࡉͱඪ४ग़ྗ͕ݟΕΔͷͰศར • Build pushes ͱ pull requests ͸ ONʹ͓͍ͯͯ͠ɺৗʹશ ύλʔϯͰͷݕূ͕ߦΘΕ͍ͯΔঢ়ଶΛอ͓ͬͯ͘
  21. None
  22. ͓·͚

  23. None
  24. None
  25. ͓ΘΓ

  26. એ఻ ϖύϘͰ͸ΤϯδχΞΛืू͍ͯ͠·͢ɻ ڞʹαʔϏεΛੜΈग़͠ҭͯͯ͘ΕΔ৽͍͠஥ؒ Λ଴͍ͬͯ·͢ɻ ! http://pepabo.com/recruit/career/engineer/