git-lfs/.travis.yml

66 lines
1.4 KiB
YAML
Raw Normal View History

2015-03-24 19:26:31 +00:00
# http://docs.travis-ci.com/user/languages/go/
language: go
2016-12-02 16:16:55 +00:00
go: 1.7.4
2016-01-14 17:30:56 +00:00
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;
2016-10-24 06:13:49 +00:00
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`;
2016-11-15 17:31:31 +00:00
cfDir="`dirname $localDir`/git-lfs";
if [[ "$localDir" != "$cfDir" ]];
then
mv "$localDir" "$cfDir";
2016-11-15 17:31:31 +00:00
cd ../../git-lfs/$repo;
export TRAVIS_BUILD_DIR=`dirname $TRAVIS_BUILD_DIR`/$repo;
fi;
install: true
script: script/cibuild
notifications:
email: false