travis: set core.autocrlf to input to avoid need to re-clone on windows
@@ -31,6 +31,7 @@ cache:
git:
depth: 1
+ autocrlf: input
matrix:
fast_finish: true
@@ -60,28 +61,8 @@ matrix:
before_install:
# Make sure we have the origin master to compare HEADs and
# save the sha for comparison in test-coverage.sh.
- # It is necessary to do this here since the rigmarole for
- # Windows loses the link to the real origin master.
- - git fetch --depth=1 origin master
- export ORIGIN_MASTER=$(git ls-remote origin master | cut -f1)
- # This garbage is necessary because on windows, Travis
- # helpfully sets core.autocrlf to true.
- #
- # The block here repeats the clone after having unset
- # core.autcrlf. There is no simple way to do this
- # conditionally on OS because windows will not allow
- # a file to be removed or moved while the file is open,
- # and we use constructed paths to scripts to get
- # conditional execution.
- #
- # Happy windowsing!
- - pushd ../../..
- - mv gonum.org/v1/gonum .
- - git config --global core.autocrlf false
- - git clone gonum gonum.org/v1/gonum
- - popd
-
- ${TRAVIS_BUILD_DIR}/.travis/run-parts ${TRAVIS_BUILD_DIR}/.travis/deps.d/${TRAVIS_OS_NAME}
addons:
