Skip to content
Snippets Groups Projects
Commit 62519657 authored by Maxence Naud's avatar Maxence Naud
Browse files

Merge remote-tracking branch 'origin/master' into dev

parents 88f6e241 031a6350
No related branches found
No related tags found
1 merge request!29Temporary master branch
Pipeline #36719 passed
...@@ -136,70 +136,70 @@ build:ubuntu_python: ...@@ -136,70 +136,70 @@ build:ubuntu_python:
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
# 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 # # aidge_core
- 'curl "https://gitlab.eclipse.org/api/v4/projects/5139/jobs/artifacts/main/download?job=build:windows_cpp" -o build_artifacts.zip' # - 'curl "https://gitlab.eclipse.org/api/v4/projects/5139/jobs/artifacts/main/download?job=build:windows_cpp" -o build_artifacts.zip'
- Expand-Archive -Path .\build_artifacts.zip -DestinationPath . -Force # - Expand-Archive -Path .\build_artifacts.zip -DestinationPath . -Force
- 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
# 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) # # aidge_core (Python)
- 'curl "https://gitlab.eclipse.org/api/v4/projects/5139/jobs/artifacts/main/download?job=build:windows_python" -o build_artifacts.zip' # - 'curl "https://gitlab.eclipse.org/api/v4/projects/5139/jobs/artifacts/main/download?job=build:windows_python" -o build_artifacts.zip'
- Expand-Archive -Path .\build_artifacts.zip -DestinationPath . -Force # - Expand-Archive -Path .\build_artifacts.zip -DestinationPath . -Force
- python -m pip install virtualenv # - python -m pip install virtualenv
- virtualenv venv # - virtualenv venv
- venv\Scripts\Activate.ps1 # - venv\Scripts\Activate.ps1
- python -m pip install -r requirements.txt # - python -m pip install -r requirements.txt
- python -m pip install . # - python -m pip install .
artifacts: # artifacts:
expire_in: 1 week # expire_in: 1 week
paths: # paths:
- venv/ # - venv/
...@@ -27,23 +27,23 @@ test:ubuntu_python: ...@@ -27,23 +27,23 @@ test:ubuntu_python:
reports: reports:
junit: ${CI_PROJECT_NAME}/xmlrunner-results.xml junit: ${CI_PROJECT_NAME}/xmlrunner-results.xml
test:windows_cpp: # test:windows_cpp:
stage: test # stage: test
needs: ["build:windows_cpp"] # needs: ["build:windows_cpp"]
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 python -Y # - choco install python -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:
- cd build_cpp # - cd build_cpp
- ctest --output-junit ctest-results.xml --output-on-failure # - ctest --output-junit ctest-results.xml --output-on-failure
artifacts: # artifacts:
reports: # reports:
junit: build_cpp/ctest-results.xml # junit: build_cpp/ctest-results.xml
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment