Skip to content
Snippets Groups Projects

Add back windows test + update using download_dependency_windows.

Closed Cyril Moineau requested to merge WinCI into dev
All threads resolved!
4 files
+ 87
86
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -157,85 +157,88 @@ build:ubuntu_python:
@@ -157,85 +157,88 @@ build:ubuntu_python:
- source venv/bin/activate
- source venv/bin/activate
- python3 -m pip install -r requirements.txt
- python3 -m pip install -r requirements.txt
- python3 -m pip install .
- python3 -m pip install .
 
- python3 -m pip install numpy unittest-xml-reporting
 
- python3 -m pip list
artifacts:
artifacts:
expire_in: 1 week
expire_in: 1 week
paths:
paths:
- venv/
- venv/
# build:windows_cpp:
build:windows_cpp:
# stage: build
stage: build
# needs: []
needs: []
# tags:
tags:
# - windows
- windows
# image: buildtools
image: buildtools
# before_script:
before_script:
# # Install Chocolatey
# 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'))
- 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
# Install dependencies
# - choco install cmake.install --installargs '"ADD_CMAKE_TO_PATH=System"' -Y
- choco install cmake.install --installargs '"ADD_CMAKE_TO_PATH=System"' -Y
# - choco install git -Y
- choco install git -Y
# - choco install python -Y
- choco install python -Y
# - choco install cuda -Y
- choco install cuda -Y
# # Update PATH
# Update PATH
# - $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
- $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
# script:
script:
# # Download dependencies
# Download dependencies
# # aidge_core
- $DEPENDENCY_JOB="build:windows_cpp"
# - 'curl "https://gitlab.eclipse.org/api/v4/projects/5139/jobs/artifacts/main/download?job=build:windows_cpp" -o build_artifacts.zip'
# aidge_core
# - Expand-Archive -Path .\build_artifacts.zip -DestinationPath . -Force
- $DEPENDENCY_NAME="aidge_core"
# - Remove-Item .\build_cpp\ -Recurse
- !reference [.download_dependency_windows, script]
# # aidge_backend_cpu
# aidge_backend_cpu
# - 'curl "https://gitlab.eclipse.org/api/v4/projects/5140/jobs/artifacts/master/download?job=build:windows_cpp" -o build_artifacts.zip'
- $DEPENDENCY_NAME="aidge_backend_cpu"
# - Expand-Archive -Path .\build_artifacts.zip -DestinationPath . -Force
- !reference [.download_dependency_windows, script]
# - Remove-Item .\build_cpp\ -Recurse
- Remove-Item .\build_cpp\ -Recurse
# - $env:CMAKE_PREFIX_PATH = '../install_cpp'
- $env:CMAKE_PREFIX_PATH = '../install_cpp'
# - mkdir -p build_cpp
- mkdir -p build_cpp
# - cd build_cpp
- cd build_cpp
# - cmake -DCMAKE_INSTALL_PREFIX:PATH=../install_cpp -DCMAKE_BUILD_TYPE=Debug ..
- cmake -DCMAKE_INSTALL_PREFIX:PATH=../install_cpp -DCMAKE_BUILD_TYPE=Debug ..
# - cmake --build . -j2
- cmake --build . -j2
# - cmake --install . --config Debug
- cmake --install . --config Debug
# artifacts:
artifacts:
# expire_in: 1 week
expire_in: 1 week
# paths:
paths:
# - build_cpp/
- build_cpp/
# - install_cpp/
- install_cpp/
# build:windows_python:
build:windows_python:
# stage: build
stage: build
# needs: []
needs: []
# tags:
tags:
# - windows
- windows
# image: buildtools
image: buildtools
# before_script:
before_script:
# # Install Chocolatey
# 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'))
- 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
# Install dependencies
# - choco install cmake.install --installargs '"ADD_CMAKE_TO_PATH=System"' -Y
- choco install cmake.install --installargs '"ADD_CMAKE_TO_PATH=System"' -Y
# - choco install git -Y
- choco install git -Y
# - choco install python -Y
- choco install python -Y
# - choco install cuda -Y
- choco install cuda -Y
# # Update PATH
# Update PATH
# - $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
- $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
# script:
script:
# # Download dependencies
# Download dependencies
# # aidge_core (Python)
- $DEPENDENCY_JOB="build:windows_python"
# - 'curl "https://gitlab.eclipse.org/api/v4/projects/5139/jobs/artifacts/main/download?job=build:windows_python" -o build_artifacts.zip'
# aidge_core (Python)
# - Expand-Archive -Path .\build_artifacts.zip -DestinationPath . -Force
- $DEPENDENCY_NAME="aidge_core"
# # aidge_backend_cpu (Python)
- !reference [.download_dependency_windows, script]
# - 'curl "https://gitlab.eclipse.org/api/v4/projects/5140/jobs/artifacts/master/download?job=build:windows_python" -o build_artifacts.zip'
# aidge_backend_cpu (Python)
# - Expand-Archive -Path .\build_artifacts.zip -DestinationPath . -Force
- $DEPENDENCY_NAME="aidge_backend_cpu"
- !reference [.download_dependency_windows, script]
# - python -m pip install virtualenv
# - virtualenv venv
- python -m pip install virtualenv
# - venv\Scripts\Activate.ps1
- virtualenv venv
# - python -m pip install -r requirements.txt
- venv\Scripts\Activate.ps1
# - python -m pip install .
- python -m pip install -r requirements.txt
# artifacts:
- python -m pip install .
# expire_in: 1 week
artifacts:
# paths:
expire_in: 1 week
# - venv/
paths:
 
- venv/
Loading