2015年6月21日

CI: Continuous Integration

動作

  • 開發者頻繁的嘗試將開發的功能整合至產品中
  • 每次的整合都會進行完整的建置(Build)與測試

益處 (出處: CI 簡介)

  • 降低整合開發功能的困難與失敗的風險
  • 減少人工手動的繁複程序
  • 可隨時產生可佈署的版本
  • 增加系統透明度

Travis CI

具體動作

Getting Started

範例: https://github.com/ropensci/ckanr/blob/master/.travis.yml

language: r

sudo: required

r_github_packages:
  - jimhester/robustr
  - jimhester/covr
  - hadley/xml2

after_success:
  - Rscript -e 'library(covr); coveralls()'

notifications:
  email:
    on_success: change
    on_failure: change

Getting Started - 2

  • 設定github專案與travis-ci:
    1. 利用github帳號註冊travis-ci與授權
    2. 在travis-ci端設定要整合的專案
  • push dev/travis,然後在travis-ci端看測試結果

Q&A

Have Fun!