From 78712dfca8c54577306ef7935d08eb1862153265 Mon Sep 17 00:00:00 2001 From: Etienne Champetier Date: Sun, 23 Jul 2017 12:51:59 -0700 Subject: build,travis: test commits format Signed-off-by: Etienne Champetier --- .travis.yml | 1 + 1 file changed, 1 insertion(+) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index e8e37aa7d..ee321b375 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,4 +11,5 @@ before_script: - ./.travis_do.sh download_sdk script: + - ./.travis_do.sh test_commits - ./.travis_do.sh test_packages -- cgit v1.2.3 From e6013407a8178474ec600c34a779d34e96f31135 Mon Sep 17 00:00:00 2001 From: Etienne Champetier Date: Mon, 24 Jul 2017 11:08:55 -0700 Subject: build,travis: fetch commits until we find merge-base if the merge-base is not in the initial clone, git diff / git rev-list will return funky results Signed-off-by: Etienne Champetier --- .travis.yml | 2 +- .travis_do.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index ee321b375..ec74c3683 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ git: - depth: 1 + depth: 10 language: c dist: trusty sudo: false diff --git a/.travis_do.sh b/.travis_do.sh index 673dced26..f2fc9c603 100755 --- a/.travis_do.sh +++ b/.travis_do.sh @@ -146,6 +146,11 @@ echo_blue "=== Travis ENV" env echo_blue "=== Travis ENV" +until git merge-base ${TRAVIS_COMMIT_RANGE/.../ } > /dev/null; do + echo_blue "Fetching 50 commits more" + git fetch origin --deepen=50 +done + if [ "$TRAVIS_PULL_REQUEST" = false ] ; then echo "Only Pull Requests are supported at the moment." >&2 exit 0 -- cgit v1.2.3