From ab2332aa8af66ef20847c3734165c7e9fe18bbd8 Mon Sep 17 00:00:00 2001 From: Robert van Gent Date: Wed, 6 Feb 2019 14:12:16 -0800 Subject: [PATCH] all: re-enable travis windows build (#123) --- .travis.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 21f267c..0e3db6b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,6 +15,7 @@ os: - linux - osx + - windows language: go go_import_path: github.com/google/wire @@ -33,9 +34,13 @@ before_install: install: # Re-checkout files preserving line feeds. This prevents Windows builds from # converting \n to \r\n. - - "git config --global core.autocrlf input" - - "git checkout -- ." - - "go install ./cmd/wire" + - if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then + cd ../..; + mv $TRAVIS_REPO_SLUG _old; + git config --global core.autocrlf false; + git clone _old $TRAVIS_REPO_SLUG; + cd $TRAVIS_REPO_SLUG; + fi - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then go install github.com/mattn/goveralls; fi