{"id":1433,"date":"2016-07-05T11:00:00","date_gmt":"2016-07-05T02:00:00","guid":{"rendered":"https:\/\/blog.ymyzk.com\/?p=1433"},"modified":"2016-10-08T18:35:06","modified_gmt":"2016-10-08T09:35:06","slug":"brew-tap-repository-ci","status":"publish","type":"post","link":"https:\/\/blog.ymyzk.com\/2016\/07\/brew-tap-repository-ci\/","title":{"rendered":"brew tap \u7528\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092 Travis CI \u3067\u30c6\u30b9\u30c8\u3059\u308b"},"content":{"rendered":"
\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u306e Homebrew \u306f tap \u3092\u7528\u3044\u308b\u3053\u3068\u3067, \u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u30fc\u304c\u63d0\u4f9b\u3057\u3066\u3044\u308b\u30ea\u30dd\u30b8\u30c8\u30ea\u306e Formulae \u3092\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059. \u3053\u306e\u8a18\u4e8b\u3067\u306f brew tap \u7528\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092 Travis CI \u4e0a\u3067\u30c6\u30b9\u30c8\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059.<\/p>\n
<\/p>\n
brew tap \u306e\u305f\u3081\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u4f5c\u6210\u306f GitHub \u4e0a\u306b\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3067\u53ef\u80fd\u3067\u3059. \u4e00\u822c\u7684\u306b\u306f \u4f8b\u3048\u3070, ymyzk\/homebrew-ymyzk \u3068\u3044\u3046\u30ea\u30dd\u30b8\u30c8\u30ea\u306f, \u8a73\u7d30\u306f\u516c\u5f0f\u306e\u30de\u30cb\u30e5\u30a2\u30eb<\/a>\u7b49\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044.<\/p>\n Homebrew \u516c\u5f0f\u30ea\u30dd\u30b8\u30c8\u30ea\u304c\u63d0\u4f9b\u3057\u3066\u3044\u308b Formulae \u306f Brew Test Bot<\/a> \u3068\u547c\u3070\u308c\u308b Bot (Jenkins) \u3067\u30c6\u30b9\u30c8\u3055\u308c\u3066\u3044\u307e\u3059. \u3053\u308c\u3068\u5168\u304f\u540c\u3058\u3053\u3068\u3092\u884c\u3046\u306e\u306f\u30b3\u30b9\u30c8\u304c\u9ad8\u3044\u306e\u3067\u3082\u3046\u5c11\u3057\u7c21\u5358\u306b\u30c6\u30b9\u30c8\u3059\u308b\u3053\u3068\u3092\u8003\u3048\u307e\u3059.<\/p>\n brew tap \u7528\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u63d0\u4f9b\u3059\u308b\u306b\u3042\u305f\u3063\u3066, \u6700\u4f4e\u9650\u4ee5\u4e0b\u306e\u3053\u3068\u304c\u6e80\u305f\u305b\u3066\u3044\u308c\u3070\u826f\u3044\u3068\u8003\u3048\u3066\u307f\u307e\u3059:<\/p>\n \u524d\u8005\u306f Travis CI \u306f OSS \u3067\u3042\u308c\u3070\u7121\u6599\u3067\u5229\u7528\u3067\u304d, macOS \u3067\u306e\u30d3\u30eb\u30c9\u74b0\u5883<\/a>\u3092\u63d0\u4f9b\u3057\u3066\u304f\u308c\u3066\u3044\u307e\u3059. \u4ee5\u4e0b\u306b, Travis CI \u3067\u306e\u8a2d\u5b9a\u4f8b (.travis.yml) \u3092\u793a\u3057\u307e\u3059.<\/p>\n \u3053\u306e\u4f8b\u3067\u306f, OS X 10.9 \u301c OS X 10.11 \u306e3\u3064\u306e OS \u3067\u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3057\u3066\u3044\u307e\u3059.\u00a0 \u307e\u305f, \u4e0a\u8a18\u306e\u30c6\u30b9\u30c8\u3092\u884c\u3046\u524d\u306b <\u30e6\u30fc\u30b6\u30fc\u540d>\/homebrew-<tap \u540d><\/code> \u3068\u3044\u3046\u98a8\u306b\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u540d\u524d\u3092\u3064\u3051\u307e\u3059.<\/p>\n
brew tap ymyzk\/ymyzk<\/code> \u3068\u3059\u308b\u304b,
brew install ymyzk\/ymyzk\/<formula><\/code>\u00a0\u306e\u3088\u3046\u306b\u3057\u3066\u5229\u7528\u3057\u307e\u3059.<\/p>\n
\u4f55\u3092\u30c6\u30b9\u30c8\u3059\u308b\u304b<\/h2>\n
\n
brew audit<\/code> \u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u3092\u7528\u3044\u308b\u3053\u3068\u3067\u30c6\u30b9\u30c8\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059. \u5f8c\u8005\u306f\u5b9f\u969b\u306b
brew install<\/code> \u3059\u308b\u3053\u3068\u3067\u5b9f\u73fe\u51fa\u6765\u305d\u3046\u3067\u3059.<\/p>\n
Travis CI \u3067\u30c6\u30b9\u30c8\u3059\u308b<\/h2>\n
osx_image<\/code> \u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u8907\u6570\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306e macOS \u3067\u30c6\u30b9\u30c8\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059.<\/p>\n
language: ruby\nmatrix:\n include:\n # See https:\/\/docs.travis-ci.com\/user\/osx-ci-environment\/#OS-X-Version\n # OS X 10.11\n - os: osx\n osx_image: xcode8\n - os: osx\n osx_image: xcode7.3\n # OS X 10.10\n - os: osx\n osx_image: xcode7.1\n # OS X 10.9\n - os: osx\n osx_image: beta-xcode6.2\ninstall:\n - brew update\nscript:\n - brew audit --strict .\/*.rb\n - brew install --verbose --build-bottle .\/*.rb\n<\/code><\/pre>\n
brew audit --strict .\/*.rb<\/code> \u3067\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30b9\u30bf\u30a4\u30eb\u306e\u30c1\u30a7\u30c3\u30af\u3092\u884c\u3044,\u00a0
brew install --verbose --build-bottle .\/*.rb<\/code> \u3067\u5b9f\u969b\u306b\u30d3\u30eb\u30c9\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u51fa\u6765\u308b\u304b\u3092\u30c6\u30b9\u30c8\u3057\u3066\u3044\u307e\u3059.<\/p>\n
brew update<\/code> \u3092\u5b9f\u884c\u3057\u3066\u3044\u307e\u3059. \u3053\u308c\u306f Travis CI \u304c Homebrew \u3092\u5229\u7528\u3059\u308b\u524d\u306b\u5b9f\u884c\u3059\u308b\u3053\u3068\u3092\u63a8\u5968\u3057\u3066\u3044\u308b<\/a>\u305f\u3081\u306b\u8ffd\u52a0\u3057\u3066\u3044\u307e\u3059.<\/p>\n