Skip to content

Commit d1fb97f

Browse files
committed
.travis.yml: Don't require FETCH_HEAD
Master builds only have a 'git clone ...' [1] so FETCH_HEAD isn't defined and git-validation crashes [2]. We don't want to be hard-coding a range here, and should update git-validation to handle these cases automatically. Also echo TRAVIS_* variables during testing to make debugging git-validation easier. [1]: https://travis-ci.org/opencontainers/runc/jobs/213508696#L243 [2]: https://travis-ci.org/opencontainers/runc/jobs/213508696#L347 Signed-off-by: W. Trevor King <[email protected]>
1 parent a4c49f5 commit d1fb97f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.travis.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ before_install:
2323
- go get -u github.com/golang/lint/golint
2424
- go get -u github.com/vbatts/git-validation
2525
- go get -u github.com/mvdan/sh/cmd/shfmt
26+
- env | grep TRAVIS_
2627

2728
script:
28-
- git-validation -run DCO,short-subject -v -range ${TRAVIS_BRANCH}..FETCH_HEAD
29+
- git-validation -run DCO,short-subject -v
2930
- make BUILDTAGS="${BUILDTAGS}"
3031
- make BUILDTAGS="${BUILDTAGS}" clean validate test

0 commit comments

Comments
 (0)