2015-03-24 19:26:31 +00:00
|
|
|
# http://docs.travis-ci.com/user/languages/go/
|
|
|
|
language: go
|
2016-02-09 21:39:07 +00:00
|
|
|
|
2016-02-23 16:51:23 +00:00
|
|
|
go: 1.6
|
2016-02-09 21:39:07 +00:00
|
|
|
|
2016-01-14 17:30:56 +00:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
2016-02-09 21:39:07 +00:00
|
|
|
|
2016-02-11 08:55:03 +00:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- GIT_LFS_TEST_DIR="$HOME/git-lfs-tests"
|
|
|
|
|
2016-02-09 21:39:07 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- 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;
|
2016-02-23 16:51:23 +00:00
|
|
|
- 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;
|
2016-02-09 21:39:07 +00:00
|
|
|
|
2015-06-15 13:59:39 +00:00
|
|
|
before_install:
|
2016-02-11 08:54:12 +00:00
|
|
|
- >
|
|
|
|
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;
|
2016-02-09 21:39:07 +00:00
|
|
|
|
|
|
|
install: true
|
|
|
|
|
|
|
|
script: script/cibuild
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
email: false
|