git-lfs/.travis.yml
2016-11-15 11:06:25 -07:00

66 lines
1.4 KiB
YAML

# http://docs.travis-ci.com/user/languages/go/
language: go
go: 1.7.1
os:
- linux
env:
global:
- GIT_LFS_TEST_DIR="$HOME/git-lfs-tests"
- GIT_SOURCE_REPO="https://github.com/git/git.git"
- GIT_EARLIEST_SUPPORTED_VERSION="v1.8.5"
- GIT_LATEST_SOURCE_BRANCH="master"
matrix:
fast_finish: true
include:
- env: git-latest-master-from-source
os: linux
before_script:
- >
git clone $GIT_SOURCE_REPO git-source;
cd git-source;
git checkout $GIT_LATEST_SOURCE_BRANCH;
make --jobs=2;
make install;
cd ..;
- env: git-earliest-supported-version-from-source
os: linux
before_script:
- >
git clone $GIT_SOURCE_REPO git-source;
cd git-source;
git checkout $GIT_EARLIEST_SUPPORTED_VERSION;
make --jobs=2;
make install;
cd ..;
- env: git-latest
os: linux
addons:
apt:
sources:
- git-core
packages:
- git
before_install:
- >
repo=`basename $PWD`;
localDir=`dirname $PWD`;
cfDir="`dirname $localDir`/git-lfs";
if [[ "$localDir" != "$cfDir" ]];
then
mv "$localDir" "$cfDir";
cd ../../git-lfs/$repo;
export TRAVIS_BUILD_DIR=`dirname $TRAVIS_BUILD_DIR`/$repo;
fi;
install: true
script: script/cibuild
notifications:
email: false