travis: Try using chocolatey to install make on a branch.

travis-windows
Doug Coleman 2018-12-29 16:36:11 -06:00
parent 382e43889b
commit 15e3715744
1 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,9 @@ addons:
- libsnappy-dev - libsnappy-dev
before_install: before_install:
- uname -s - uname -s
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" ; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install make ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./build.sh deps-macosx ; else ./build.sh deps-apt-get ; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./build.sh deps-macosx ; else ./build.sh deps-apt-get ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew ls --versions snappy > /dev/null || brew install snappy; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew ls --versions snappy > /dev/null || brew install snappy; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew ls --versions cmake > /dev/null || brew install cmake; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew ls --versions cmake > /dev/null || brew install cmake; fi