Humanity

Edit the world by your favorite way

GitHub の organization アカウントのリポジトリを AppVeyor に追加する

Go のコマンドラインアプリの AppVeyor 対応したので雑なログ。

ここを参考にした。

  1. Organization 用の AppVeyor アカウントを Sign Up から作る
  2. 自分のメインの AppVeyor アカウントを Administrator role で Collaborator として追加する
    • Collaborator を追加する際にメールアドレスを入力する必要があるが、ここは自分のメインの AppVeyor アカウントが紐づけられた GitHub アカウントのメールアドレスを入力する
  3. https://github.com/organizations/<organization>/settings/oauth_application_policy のページに行って restriction がかかってると "New Project" → "GitHub" でリポジトリがリストアップされないので restriction を外す(確か Remove restriction ってボタンがあったのでそれを押した)
  4. リポジトリを追加する
  5. appveyor.yml をリポジトリに追加する
  6. Pull request 送って push したりすると CI が動く
    • いつ動くかは変えられたりする。詳細は上記ドキュメントを見てください

f:id:tyru:20171212234629p:plain

appveyor.yml の例

以下を参考にしたりした。 Web アプリとかでも同じのはず。

Setting up an AppVeyor pipeline for Golang

自分が追加したのはこんな感じ。

Introduce AppVeyor CI (and fix failed tests on Windows) by tyru · Pull Request #106 · vim-volt/volt · GitHub