Skip to content

Commit

Permalink
ci: avoid duplicated strings
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed Jul 9, 2020
1 parent b2e1996 commit 067fb58
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .ci/scripts/install-tools.bat
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
set GOPATH=%WORKSPACE%
set MAGEFILE_CACHE=%WORKSPACE%\.magefile
set PATH=%WORKSPACE%\bin;C:\ProgramData\chocolatey\bin;%PATH%

REM Configure GCC for either 32 or 64 bits
IF EXIST "%PROGRAMFILES(X86)%" (
set PATH=C:\tools\mingw64\bin;%PATH%
) ELSE (
set PATH=C:\tools\mingw32\bin;%PATH%
set MINGW_ARCH=64
IF NOT EXIST "%PROGRAMFILES(X86)%" (
set MINGW_ARCH=32
)
set PATH=%WORKSPACE%\bin;C:\ProgramData\chocolatey\bin;C:\tools\mingw%MINGW_ARCH%\bin;%PATH%

where /q curl
IF ERRORLEVEL 1 (
Expand Down Expand Up @@ -35,7 +34,7 @@ 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
)
Expand Down

0 comments on commit 067fb58

Please sign in to comment.