Skip to content

Commit

Permalink
[CI][BUILD] fail if choco failed
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed Jul 30, 2020
1 parent 7a34167 commit e3684c5
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .ci/scripts/install-tools.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set PATH=%WORKSPACE%\bin;C:\ProgramData\chocolatey\bin;C:\tools\mingw64\bin;%PAT

where /q curl
IF ERRORLEVEL 1 (
choco install curl -y --no-progress --skipdownloadcache
choco install curl -y --no-progress --skipdownloadcache
)
mkdir %WORKSPACE%\bin

Expand All @@ -28,16 +28,22 @@ go get github.com/magefile/mage
mage -version
where mage

if not exist C:\Python38\python.exe (
IF NOT EXIST C:\Python38\python.exe (
REM Install python 3.8.
choco install python -y -r --no-progress --version 3.8.2 || echo ERROR && exit /b
choco install python -y -r --no-progress --version 3.8.2
IF NOT ERRORLEVEL 0 (
exit /b 1
)
)
python --version
where python

if not exist C:\tools\mingw64\bin\gcc.exe (
IF NOT EXIST C:\tools\mingw64\bin\gcc.exe (
REM Install mingw 5.3.0
choco install mingw -y -r --no-progress --version 5.3.0 || echo ERROR && exit /b
choco install mingw -y -r --no-progress --version 5.3.0
IF NOT ERRORLEVEL 0 (
exit /b 1
)
)
gcc --version
where gcc

0 comments on commit e3684c5

Please sign in to comment.