Export more Travis debugging and fix Git issue.

This commit is contained in:
Mike McQuaid 2015-09-24 08:33:08 +01:00
parent 00480edf9d
commit 711e079901
2 changed files with 10 additions and 0 deletions

View File

@ -15,10 +15,12 @@ matrix:
rvm: system
before_install:
- sudo rm -rf /usr/local/.git
- sudo rsync -az "$TRAVIS_BUILD_DIR/" /usr/local/
- export TRAVIS_BUILD_DIR="/usr/local"
- sudo chown -R $USER /usr/local
- cd /usr/local
- env | grep TRAVIS_
- if [ -f ".git/shallow" ]; then travis_retry git fetch --unshallow; fi
- git reset --hard $TRAVIS_COMMIT
- git clean -qxdff

View File

@ -354,6 +354,14 @@ module Homebrew
@name = "#{@formulae.first}-#{diff_end_sha1}"
end
if ENV["TRAVIS"]
puts "name: #{@name}"
puts "url: #{@url}"
puts "hash: #{@hash}"
puts "diff_start_sha1: #{diff_start_sha1}"
puts "diff_end_sha1: #{diff_end_sha1}"
end
@log_root = @brewbot_root + @name
FileUtils.mkdir_p @log_root