all: re-enable travis windows build (#123)
This commit is contained in:
11
.travis.yml
11
.travis.yml
@@ -15,6 +15,7 @@
|
|||||||
os:
|
os:
|
||||||
- linux
|
- linux
|
||||||
- osx
|
- osx
|
||||||
|
- windows
|
||||||
|
|
||||||
language: go
|
language: go
|
||||||
go_import_path: github.com/google/wire
|
go_import_path: github.com/google/wire
|
||||||
@@ -33,9 +34,13 @@ before_install:
|
|||||||
install:
|
install:
|
||||||
# Re-checkout files preserving line feeds. This prevents Windows builds from
|
# Re-checkout files preserving line feeds. This prevents Windows builds from
|
||||||
# converting \n to \r\n.
|
# converting \n to \r\n.
|
||||||
- "git config --global core.autocrlf input"
|
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
|
||||||
- "git checkout -- ."
|
cd ../..;
|
||||||
- "go install ./cmd/wire"
|
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
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
||||||
go install github.com/mattn/goveralls;
|
go install github.com/mattn/goveralls;
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user