Skip to content
This repository was archived by the owner on Apr 12, 2019. It is now read-only.

Commit 30239f0

Browse files
committed
Use ad-hoc docker image for testing git-1.7.2
1 parent ca88fdf commit 30239f0

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

.drone.yml

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,25 @@ clone:
1010
tags: true
1111

1212
pipeline:
13-
testing:
13+
testing-git-latest:
1414
image: webhippie/golang:edge
1515
pull: true
1616
commands:
1717
- git update-ref refs/heads/test HEAD
1818
- make clean
1919
- make vet
2020
- make lint
21-
# Test with latest git version
2221
- git --version && make test
23-
# Test with git version 1.7.2
24-
- apk add --update autoconf zlib-dev > /dev/null &&
25-
mkdir build &&
26-
curl -sL "https://github.com/git/git/archive/v1.7.2.tar.gz" -o git.tar.gz &&
27-
tar -C build -xzf git.tar.gz &&
28-
cd build/git-1.7.2 &&
29-
{ autoconf 2> err || { cat err && false; } } &&
30-
./configure --without-tcltk --prefix=/usr/local > /dev/null &&
31-
{ make install NO_PERL=please > /dev/null 2> err || { cat err && false; } } &&
32-
cd ../.. &&
33-
rm -rf build git.tar.gz &&
34-
hash -r &&
35-
git --version &&
36-
make test
37-
# Test a build (is this really needed?)
3822
- make build
23+
testing-git-1.7:
24+
image: docker.kbt.io/gitea-git-ci:1.7
25+
pull: true
26+
commands:
27+
- git update-ref refs/heads/test HEAD
28+
- make clean
29+
- make vet
30+
- make lint
31+
- PATH=/opt/git-1.7.2/bin git --version && make test
3932

4033
# coverage:
4134
# image: plugins/coverage:1

0 commit comments

Comments
 (0)