2018-03-19 13:51:10 +00:00
|
|
|
version: 2
|
2016-11-15 19:35:04 +00:00
|
|
|
|
2018-03-19 13:51:10 +00:00
|
|
|
jobs:
|
|
|
|
bootstrap:
|
|
|
|
macos:
|
2018-03-19 14:16:55 +00:00
|
|
|
xcode: "9.2.0"
|
2018-03-19 18:55:32 +00:00
|
|
|
working_directory: ~
|
2018-03-19 13:51:10 +00:00
|
|
|
steps:
|
2018-03-19 18:52:55 +00:00
|
|
|
- run: git clone https://github.com/git-lfs/git-lfs.git ~/git-lfs
|
2018-03-20 15:10:11 +00:00
|
|
|
- run: cd ~/git-lfs && git reset --hard "$CIRCLE_SHA1"
|
2018-03-19 18:52:55 +00:00
|
|
|
- run: echo 'export GOPATH=~/git-lfs/.go' >> $BASH_ENV
|
2018-03-19 13:51:10 +00:00
|
|
|
- run: brew update
|
|
|
|
- run: brew prune
|
|
|
|
- run: brew upgrade go || brew install go
|
|
|
|
- run: brew upgrade git || brew install git
|
|
|
|
- run: brew upgrade gettext || brew install gettext
|
2018-03-19 18:55:32 +00:00
|
|
|
- run: git clone https://github.com/git/git.git ~/git-lfs/git-source
|
2018-03-19 13:51:10 +00:00
|
|
|
- run: go get -d -v github.com/spf13/cobra
|
|
|
|
- run: go get -d -v github.com/ThomsonReutersEikon/go-ntlm/ntlm
|
2018-03-19 18:52:55 +00:00
|
|
|
- run: mkdir -p ~/git-lfs/.go/src/github.com/git-lfs
|
|
|
|
- run: ln -s ~/git-lfs ~/git-lfs/.go/src/github.com/git-lfs
|
2018-03-19 14:52:34 +00:00
|
|
|
- save_cache:
|
2018-03-19 18:22:19 +00:00
|
|
|
key: git-lfs-{{ .Branch }}-{{ .Revision }}
|
2018-03-19 14:52:34 +00:00
|
|
|
paths:
|
|
|
|
- /usr/local/Cellar
|
2018-03-19 18:22:19 +00:00
|
|
|
- ~/git-lfs
|
2016-11-15 18:06:25 +00:00
|
|
|
|
2018-03-19 13:51:10 +00:00
|
|
|
build_with_system_git:
|
|
|
|
macos:
|
2018-03-19 14:16:55 +00:00
|
|
|
xcode: "9.2.0"
|
2018-03-19 18:22:19 +00:00
|
|
|
working_directory: ~/git-lfs
|
2018-03-19 13:51:10 +00:00
|
|
|
environment:
|
|
|
|
GIT_SOURCE_REPO: https://github.com/git/git.git
|
|
|
|
steps:
|
2018-03-19 14:52:34 +00:00
|
|
|
- restore_cache:
|
2018-03-19 18:22:19 +00:00
|
|
|
key: git-lfs-{{ .Branch }}-{{ .Revision }}
|
2018-03-19 15:07:53 +00:00
|
|
|
- run: echo go git gettext | xargs brew link --force
|
2018-03-20 15:49:42 +00:00
|
|
|
- run: echo "export GOPATH=$HOME/git-lfs/.go" >> $BASH_ENV
|
|
|
|
- run: echo "export GIT_LFS_TEST_DIR=$HOME/git-lfs-tests" >> $BASH_ENV
|
2018-03-19 18:01:08 +00:00
|
|
|
- run: echo 'export PATH=$GOPATH/bin:$PATH' >> $BASH_ENV
|
|
|
|
- run: pwd && ./script/integration
|
2016-11-15 19:41:33 +00:00
|
|
|
|
2018-03-19 13:51:10 +00:00
|
|
|
build_with_earliest_supported_git:
|
|
|
|
macos:
|
2018-03-19 14:16:55 +00:00
|
|
|
xcode: "9.2.0"
|
2018-03-19 18:22:19 +00:00
|
|
|
working_directory: ~/git-lfs
|
2018-03-19 13:51:10 +00:00
|
|
|
environment:
|
|
|
|
GIT_EARLIEST_SUPPORTED_VERSION: v2.0.0
|
|
|
|
GIT_SOURCE_REPO: https://github.com/git/git.git
|
|
|
|
steps:
|
2018-03-19 14:52:34 +00:00
|
|
|
- restore_cache:
|
2018-03-19 18:22:19 +00:00
|
|
|
key: git-lfs-{{ .Branch }}-{{ .Revision }}
|
2018-03-19 15:07:53 +00:00
|
|
|
- run: echo go git gettext | xargs brew link --force
|
2018-03-19 13:51:10 +00:00
|
|
|
- run:
|
2018-03-19 14:34:48 +00:00
|
|
|
command: ./script/install-git-source "$GIT_EARLIEST_SUPPORTED_VERSION"
|
2018-03-19 13:51:10 +00:00
|
|
|
environment:
|
|
|
|
NO_OPENSSL: YesPlease
|
|
|
|
APPLE_COMMON_CRYPTO: YesPlease
|
2018-03-20 15:49:42 +00:00
|
|
|
- run: echo "export GOPATH=$HOME/git-lfs/.go" >> $BASH_ENV
|
|
|
|
- run: echo "export GIT_LFS_TEST_DIR=$HOME/git-lfs-tests" >> $BASH_ENV
|
2018-03-19 18:01:08 +00:00
|
|
|
- run: echo 'export PATH=$GOPATH/bin:$PATH' >> $BASH_ENV
|
|
|
|
- run: pwd && ./script/integration
|
2016-11-15 18:06:25 +00:00
|
|
|
|
2018-03-19 13:51:10 +00:00
|
|
|
build_with_latest_git:
|
|
|
|
macos:
|
2018-03-19 14:16:55 +00:00
|
|
|
xcode: "9.2.0"
|
2018-03-19 18:22:19 +00:00
|
|
|
working_directory: ~/git-lfs
|
2018-03-19 13:51:10 +00:00
|
|
|
environment:
|
|
|
|
GIT_LATEST_SOURCE_BRANCH: master
|
|
|
|
GIT_SOURCE_REPO: https://github.com/git/git.git
|
|
|
|
steps:
|
2018-03-19 14:52:34 +00:00
|
|
|
- restore_cache:
|
2018-03-19 18:22:19 +00:00
|
|
|
key: git-lfs-{{ .Branch }}-{{ .Revision }}
|
2018-03-19 15:07:53 +00:00
|
|
|
- run: echo go git gettext | xargs brew link --force
|
2018-03-19 13:51:10 +00:00
|
|
|
- run:
|
2018-03-19 14:34:48 +00:00
|
|
|
command: ./script/install-git-source "$GIT_LATEST_SOURCE_BRANCH"
|
2018-03-19 13:51:10 +00:00
|
|
|
environment:
|
|
|
|
NO_OPENSSL: YesPlease
|
|
|
|
APPLE_COMMON_CRYPTO: YesPlease
|
2018-03-20 15:49:42 +00:00
|
|
|
- run: echo "export GOPATH=$HOME/git-lfs/.go" >> $BASH_ENV
|
|
|
|
- run: echo "export GIT_LFS_TEST_DIR=$HOME/git-lfs-tests" >> $BASH_ENV
|
2018-03-19 18:01:08 +00:00
|
|
|
- run: echo 'export PATH=$GOPATH/bin:$PATH' >> $BASH_ENV
|
|
|
|
- run: pwd && ./script/integration
|
2016-11-15 19:52:39 +00:00
|
|
|
|
2018-03-19 13:51:10 +00:00
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
build:
|
2018-03-19 14:25:46 +00:00
|
|
|
jobs:
|
|
|
|
- bootstrap
|
|
|
|
- build_with_earliest_supported_git:
|
|
|
|
requires:
|
|
|
|
- bootstrap
|
|
|
|
- build_with_latest_git:
|
|
|
|
requires:
|
|
|
|
- bootstrap
|
|
|
|
- build_with_system_git:
|
|
|
|
requires:
|
|
|
|
- bootstrap
|