Skip to content
Snippets Groups Projects

Wrong gitlab runner for windows_python

Merged Olivier BICHLER requested to merge win_python into main
Files
2
@@ -130,16 +130,26 @@ build:windows_python:
stage: build
needs: []
tags:
- docker
- windows
image: buildtools
before_script:
# Install Chocolatey
- Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
# Install dependencies
- choco install cmake.install --installargs '"ADD_CMAKE_TO_PATH=System"' -Y
- choco install git -Y
- choco install python -Y
# Update PATH
- $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
script:
- python3 -m pip install virtualenv
- python -m pip install virtualenv
- virtualenv venv
- source venv/bin/activate
- venv\Scripts\Activate.ps1
# Numpy dependancy for unit test
- python3 -m pip install numpy
- export AIDGE_INSTALL=`pwd`/install
- python3 -m pip install .
- python -m pip install numpy
- $env:AIDGE_INSTALL = "$pwd" + "install"
- python -m pip install .
artifacts:
expire_in: 1 week
paths:
Loading