New attempt

This commit is contained in:
Manuel Cortez 2020-07-19 08:36:30 -05:00
parent 9ef726e762
commit b9c763c4f4

View File

@ -4,7 +4,7 @@ variables:
NSIS: "C:\\nsis\\makensis.exe"
default:
image: python:3.8.4-windowsservercore
image: mcr.microsoft.com/windows/servercore:1809-amd64
### Stage list
# Build: This will be the main stage generating stuff in the dist folder. Jobs present in this stage will run py2exe or pyinstaller files accordingly.
@ -19,10 +19,12 @@ stages:
- windows10
before_script:
- '$ProgressPreference = "SilentlyContinue"'
- 'Invoke-WebRequest -UseBasicParsing -Uri "https://github.com/git-for-windows/git/releases/download/v2.27.0.windows.1/Git-2.27.0-32-bit.exe" -OutFile "git_setup.exe"'
- '.\git_setup.exe /verysilent /NORESTART /NOCANCEL /SP- /CLOSEAPPLICATIONS /RESTARTAPPLICATIONS /COMPONENTS="icons,ext\reg\shellhere,assoc,assoc_sh" /dir=C:\git'
- '$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";C:\git\cmd\;" + [System.Environment]::GetEnvironmentVariable("Path","User") '
- '$env:PATH'
- 'Set-ExecutionPolicy Bypass -Scope Process -Force; iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex'
- 'choco install -y --x86 python git nsis'
# - 'Invoke-WebRequest -UseBasicParsing -Uri "https://github.com/git-for-windows/git/releases/download/v2.27.0.windows.1/Git-2.27.0-32-bit.exe" -OutFile "git_setup.exe"'
# - '.\git_setup.exe /verysilent /NORESTART /NOCANCEL /SP- /CLOSEAPPLICATIONS /RESTARTAPPLICATIONS /COMPONENTS="icons,ext\reg\shellhere,assoc,assoc_sh" /dir=C:\git'
# - '$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";C:\git\cmd\;" + [System.Environment]::GetEnvironmentVariable("Path","User") '
# - '$env:PATH'
- 'python -V'
# - '&$env:PYTHON3_32 -m venv env'
# - 'env\scripts\activate'