77 lines
1.7 KiB
YAML
77 lines
1.7 KiB
YAML
# http://docs.travis-ci.com/user/languages/go/
|
|
language: go
|
|
|
|
go: 1.8.3
|
|
|
|
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="v2.0.0
|
|
- GIT_LATEST_SOURCE_BRANCH="master"
|
|
- GIT_NEXT_SOURCE_BRANCH="next"
|
|
|
|
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-latest-next-from-source
|
|
os: linux
|
|
before_script:
|
|
- >
|
|
git clone $GIT_SOURCE_REPO git-source;
|
|
cd git-source;
|
|
git checkout $GIT_NEXT_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
|