group choco install make/mingw together & export correct path

This commit is contained in:
Adrien Delorme 2018-10-16 16:57:34 +02:00
parent 9a1a2d76ce
commit 586be1ec46
1 changed files with 1 additions and 3 deletions

View File

@ -15,11 +15,9 @@ go:
- master
before_install:
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install make ; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install mingw ; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install -y make mingw; export PATH=/c/tools/mingw64/bin:"$PATH"; fi
script:
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then export CGO_ENABLED=0 ; fi
- GOMAXPROCS=2 make ci
branches: