git-lfs/.travis.yml
Lars Schneider e5756d3d22 travis-ci: add a build job to test against upcoming versions of Git
The Git source version is defined by the variables GIT_SOURCE_REPO and
GIT_SOURCE_BRANCH (which can also be a Git hash). The Git source is
checked out, compiled, and installed on the Travis CI Linux machine.
Afterwards all Git-LFS tests are executed against the this Git version.

This setup helps to test features that depend on changes in the
development branches of Git and Git-LFS.
2016-07-11 21:15:12 +02:00

84 lines
1.7 KiB
YAML

# http://docs.travis-ci.com/user/languages/go/
language: go
go: 1.6
os:
- linux
- osx
env:
global:
- GIT_LFS_TEST_DIR="$HOME/git-lfs-tests"
- GIT_SOURCE_REPO="https://github.com/git/git.git"
- GIT_SOURCE_BRANCH="next"
matrix:
fast_finish: true
allow_failures:
- os: osx
- env: git-from-source
include:
- env: git-from-source
os: linux
before_script:
- >
git clone $GIT_SOURCE_REPO git-source;
cd git-source;
git checkout $GIT_SOURCE_BRANCH;
make --jobs=2;
make install;
cd ..;
- env: git-latest
os: linux
addons:
apt:
sources:
- git-core
packages:
- git
- env: git-latest
os: osx
# The 'before_install' phase cannot be used here as we would override the
# default 'before_install' phase. The 'before_script' phase is sufficient
# for the Git install since the Git binary is only used in the tests.
before_script:
- >
brew update;
brew install git;
- env: git-latest-go-1.5
os: linux
go: 1.5
addons:
apt:
sources:
- git-core
packages:
- git
- env: git-latest-go-1.5
os: osx
go: 1.5
before_script:
- >
brew update;
brew install git;
before_install:
- >
repo=`basename $PWD`;
localDir=`dirname $PWD`;
cfDir="`dirname $localDir`/github";
if [[ "$localDir" != "$cfDir" ]];
then
mv "$localDir" "$cfDir";
cd ../../github/$repo;
export TRAVIS_BUILD_DIR=`dirname $TRAVIS_BUILD_DIR`/$repo;
fi;
install: true
script: script/cibuild
notifications:
email: false