forked from git-lfs/git-lfs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
66 lines (58 loc) · 1.41 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# http://docs.travis-ci.com/user/languages/go/
language: go
go: 1.10.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_ASKPASS=""
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