LoginSignup
7
5

More than 5 years have passed since last update.

CircleCIでgit-lfsをインストールしてからテストする

Last updated at Posted at 2017-07-19

dependenciesでインストール

かなり大きめのCSVファイルを処理させる必要があり、CSVをGitLFSで管理させるようにしたら急にspecがfailedしまくった。
テスト実行前に自分でLFSをインストールして解決。

circle.yml
dependencies:
  override:
    # installing git-lfs
    - curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
    - sudo apt-get install git-lfs=2.2.0
    - ssh git@github.com git-lfs-authenticate <user>/<project>.git download
    - git lfs pull

参考リンクだと最後のgit lfs pullが抜けていたりするので(コメントには書いてありますが)、結論を自分用のメモとして残しておきます。
インストールするバージョンは変数として出すなり良きに変えるなりしてください。

GitLFSなんかすごい早くなった気がする。
CircleCIも全部2.0に移行するぞー。

Ref

Installing git-lfs - CircleCI Community Discussion

7
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
5